Browse Source

修改

master
gjh 3 days ago
parent
commit
a0b589680f
  1. 2
      src/views/projectLib/projectPlan/index.vue
  2. 4
      vite.config.ts

2
src/views/projectLib/projectPlan/index.vue

@ -150,7 +150,7 @@
} }
async function handlePlan(record: any) { async function handlePlan(record: any) {
if (record.stage == 5) { if (record.stage == 5) {
const res = await queryUpdatePlanFlagById({projectid:record.id}); const res = await queryUpdatePlanFlagById({projectId:record.id});
console.log(res) console.log(res)
if (res) { if (res) {
type.value = '2'; type.value = '2';

4
vite.config.ts

@ -22,7 +22,7 @@ export default defineApplicationConfig({
hmr: true, hmr: true,
proxy: { proxy: {
'/guoyan': { '/guoyan': {
target: 'http://10.1.21.250:18081', target: 'http://localhost:8080/',
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
rewrite: (path) => path.replace(new RegExp(`^/guoyan`), ''), rewrite: (path) => path.replace(new RegExp(`^/guoyan`), ''),
@ -30,7 +30,7 @@ export default defineApplicationConfig({
// secure: false // secure: false
}, },
'/upload': { '/upload': {
target: 'http://10.1.21.250:18081:3300/upload', target: 'http://localhost:3300/upload',
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
rewrite: (path) => path.replace(new RegExp(`^/upload`), ''), rewrite: (path) => path.replace(new RegExp(`^/upload`), ''),

Loading…
Cancel
Save