|
|
|
@ -61,10 +61,25 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
|
|
|
|
open: JSON.parse(env.VITE_OPEN),
|
|
|
|
|
hmr: true,
|
|
|
|
|
proxy: {
|
|
|
|
|
'^/[Uu]pload': {
|
|
|
|
|
target: env.VITE_API_URL,
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
// '^/[Uu]pload': {
|
|
|
|
|
// target: env.VITE_API_URL,
|
|
|
|
|
// changeOrigin: true,
|
|
|
|
|
// },
|
|
|
|
|
'^/api/BaseStationInfo(.*)':{
|
|
|
|
|
target: 'http://192.168.2.15:5034', //
|
|
|
|
|
changeOrigin: true, // 改变源
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'^/api/Disposition(.*)':{
|
|
|
|
|
target: 'http://192.168.2.21:5034', //
|
|
|
|
|
changeOrigin: true, // 改变源
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'/api':{
|
|
|
|
|
target: 'http://192.168.2.13:5005', // 登录
|
|
|
|
|
changeOrigin: true, // 改变源
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
build: {
|
|
|
|
|