mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-13 22:12:11 +08:00
feat: 修改接口
This commit is contained in:
parent
54da31f7d5
commit
e2e422882d
@ -50,7 +50,8 @@ export default ({ mode }) => defineConfig({
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
target: loadEnv(mode, process.cwd()).VITE_DEV_PATH,
|
target: loadEnv(mode, process.cwd()).VITE_DEV_PATH,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(new RegExp(`^${axiosPre}`), ''),
|
// rewrite: (path) => path.replace(new RegExp(`^${axiosPre}`), ''),
|
||||||
|
rewrite: () => '',
|
||||||
ws: true,
|
ws: true,
|
||||||
secure: true,
|
secure: true,
|
||||||
},
|
},
|
||||||
@ -61,22 +62,14 @@ export default ({ mode }) => defineConfig({
|
|||||||
ws: true,
|
ws: true,
|
||||||
secure: true,
|
secure: true,
|
||||||
},
|
},
|
||||||
'/svgConfig/api/goview': {
|
// '/svgConfig': {
|
||||||
// @ts-ignore
|
// // @ts-ignore
|
||||||
target: loadEnv(mode, process.cwd()).VITE_DEV_PATH,
|
// target: loadEnv(mode, process.cwd()).VITE_DEV_PATH,
|
||||||
changeOrigin: true,
|
// changeOrigin: true,
|
||||||
rewrite: () => '',
|
// rewrite: () => '',
|
||||||
ws: true,
|
// ws: true,
|
||||||
secure: true,
|
// secure: true,
|
||||||
},
|
// },
|
||||||
'/svgConfig': {
|
|
||||||
// @ts-ignore
|
|
||||||
target: loadEnv(mode, process.cwd()).VITE_DEV_PATH,
|
|
||||||
changeOrigin: true,
|
|
||||||
rewrite: () => '',
|
|
||||||
ws: true,
|
|
||||||
secure: true,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
@ -118,6 +111,7 @@ export default ({ mode }) => defineConfig({
|
|||||||
// terserOptions: terserOptions,
|
// terserOptions: terserOptions,
|
||||||
rollupOptions: rollupOptions,
|
rollupOptions: rollupOptions,
|
||||||
brotliSize: brotliSize,
|
brotliSize: brotliSize,
|
||||||
chunkSizeWarningLimit: chunkSizeWarningLimit
|
chunkSizeWarningLimit: chunkSizeWarningLimit,
|
||||||
|
sourcemap: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user