forked from integrated_whb/integrated_whb_vue
三项制度库代理
parent
1fa8b0a609
commit
848b623cf3
4
.env
4
.env
|
@ -1,5 +1,7 @@
|
||||||
VITE_BASE_URL=http://192.168.0.55:8088/
|
VITE_BASE_URL=http://192.168.0.42:8099/
|
||||||
VITE_PROXY=/api/
|
VITE_PROXY=/api/
|
||||||
|
VITE_PROXY_QAAQ=/qaaq_api/
|
||||||
|
VITE_QAAQ_URL=https://gateway.qhdsafety.com/
|
||||||
VITE_FILE_URL=https://file.zcloudchina.com/YTHFile
|
VITE_FILE_URL=https://file.zcloudchina.com/YTHFile
|
||||||
VITE_TEMPLATE_URL=https://qaaq.qhdsafety.com/file/
|
VITE_TEMPLATE_URL=https://qaaq.qhdsafety.com/file/
|
||||||
VITE_ON_LINE_WEB_SOCKET_URL=wss://qaaq.qhdsafety.com/zxwebsocket/
|
VITE_ON_LINE_WEB_SOCKET_URL=wss://qaaq.qhdsafety.com/zxwebsocket/
|
||||||
|
|
|
@ -66,6 +66,12 @@ export default ({ mode }) => {
|
||||||
ws: true,
|
ws: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ""),
|
rewrite: (path) => path.replace(/^\/api/, ""),
|
||||||
},
|
},
|
||||||
|
[loadEnv(mode, process.cwd()).VITE_PROXY_QAAQ]: {
|
||||||
|
target: loadEnv(mode, process.cwd()).VITE_QAAQ_URL,
|
||||||
|
changeOrigin: true,
|
||||||
|
ws: true,
|
||||||
|
rewrite: (path) => path.replace(/^\/qaaq_api/, ""),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
Loading…
Reference in New Issue