前后端分目录
This commit is contained in:
@@ -5,7 +5,7 @@ switch (process.env.NODE_ENV) {
|
||||
case 'development': // 开发环境代理地址
|
||||
proxyObj = {
|
||||
'/Riskmanage': {
|
||||
target: 'http://localhost:80', // 开发环境
|
||||
target: 'http://47.102.125.25:80', // 开发环境
|
||||
changeOrigin: true, // 是否跨域
|
||||
pathRewrite: {
|
||||
'^/Riskmanage': '/Riskmanage'
|
||||
@@ -13,7 +13,7 @@ switch (process.env.NODE_ENV) {
|
||||
|
||||
},
|
||||
'/trading': {
|
||||
target: 'http://localhost:80', // 开发环境
|
||||
target: 'http://47.242.85.45:80', // 开发环境
|
||||
changeOrigin: true, // 是否跨域
|
||||
pathRewrite: {
|
||||
'^/trading': '/trading'
|
||||
|
||||
Reference in New Issue
Block a user