This commit is contained in:
bwm
2024-08-30 16:56:07 +08:00
parent 49855f198a
commit 5f59baf186
15 changed files with 1119 additions and 381 deletions
+8 -8
View File
@@ -53,26 +53,26 @@ export default defineConfig(({ mode, command }) => {
hmr: { overlay: false },
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
"/qomo": {
"/newEnergy": {
// target: "http://172.16.0.241:8095", //wq
// target: "http://172.16.0.162:8082", //bgy
target: "http://172.16.2.127:8082", //bgy远程
// target: "http://192.168.50.9:2999",//中智平台
// target: "http://192.168.43.195:8098", //bgy远程
// target: "http://192.168.50.9:2999",//中制平台
changeOrigin: true,
pathRewrite: {
"^/qomo": "/qomo"
"^/newEnergy": "/newEnergy"
}
},
"/qomo/flowSocket": {
"/newEnergy/flowSocket": {
// target: 'ws://192.168.0.66:60601/',这是后端接口地址
target: 'ws://172.16.0.162:8082',
// target: 'ws://192.168.43.195:8098',
// target: 'ws://192.168.50.99:2999',
changeOrigin: true,
ws: true
},
"/qomo/taskSocket": {
"/newEnergy/taskSocket": {
// target: 'ws://192.168.0.66:60601/',这是后端接口地址
target: 'ws://172.16.0.162:8082',
// target: 'ws://192.168.43.195:8098',
// target: 'ws://192.168.50.99:2999',
changeOrigin: true,
ws: true