将代理目标地址修改为局域网IP
This commit is contained in:
parent
906b5f37a7
commit
a6d5c25e1c
@ -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/, '')
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user