|
@@ -46,12 +46,21 @@ export default defineConfig(({ mode }) => {
|
|
|
server: {
|
|
|
proxy: {
|
|
|
'/api': {
|
|
|
- target: 'http://192.168.0.131:8187/TransServlet',//配置文件获取地址
|
|
|
+ // target: 'http://192.168.0.131:8187/TransServlet',//配置文件获取地址
|
|
|
+ target: 'https://www.adicn.com/disaster',
|
|
|
secure: false, //接受使用https
|
|
|
changeOrigin: true, //允许跨域
|
|
|
ws: false, //使用websocket
|
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
|
},
|
|
|
+ '/disaster': {
|
|
|
+ // target: 'http://192.168.0.131:8187/TransServlet',//配置文件获取地址
|
|
|
+ target: 'https://www.adicn.com/disaster',
|
|
|
+ secure: false, //接受使用https
|
|
|
+ changeOrigin: true, //允许跨域
|
|
|
+ ws: false, //使用websocket
|
|
|
+ rewrite: (path) => path.replace(/^\/disaster/, '')
|
|
|
+ },
|
|
|
|
|
|
'/file': {
|
|
|
// target: 'http://192.168.0.15:8081/', // 后端接口地址
|