diff --git a/vite.config.js b/vite.config.js index db3b096..b31c5fb 100644 --- a/vite.config.js +++ b/vite.config.js @@ -77,12 +77,12 @@ export default env => { open: true, proxy: { '/api': { - target: 'http://localhost:8501', // 后端接口的域名 + target: 'http://192.168.0.240:8501', // 后端接口的域名 changeOrigin: true, }, '/admin': { - target: 'http://localhost:8501', // 后端接口的域名 + target: 'http://192.168.0.240:8501', // 后端接口的域名 changeOrigin: true, }, @@ -95,7 +95,7 @@ export default env => { // 强度计算模块 '/strength-api': { - target: 'http://localhost:8501', + target: 'http://192.168.0.240:8501', changeOrigin: true, rewrite: path => path.replace(/^\/strength-api/, '') }