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