diff --git a/config/index.js b/config/index.js index 1343072..68b8c99 100644 --- a/config/index.js +++ b/config/index.js @@ -4,7 +4,7 @@ let oldApiBaseUrl ='/uboeApi'; let statApiBaseUrl='/statApi'; let socialApiBaseUrl='/socialApi'; let loginPath='/pages/login/login'; -let context='/mobile'; +let context='/mobile-release'; let tokenName=''; let appId='' let fileUrl=''; @@ -40,8 +40,8 @@ if(process.env.NODE_ENV === 'development'){ oldApiBaseUrl = '/uboeApi'; statApiBaseUrl='/statApi'; socialApiBaseUrl='/socialApi'; - fileUrl = 'https://u-pre.boe.com/upload'; - loginPath='https://u-pre.boe.com/m/loginuser'; + fileUrl = 'https://u.boe.com/upload'; + loginPath='https://u.boe.com/m/loginuser'; } export default { diff --git a/manifest.json b/manifest.json index 8948f10..66ff26b 100644 --- a/manifest.json +++ b/manifest.json @@ -73,7 +73,7 @@ "devServer" : { "https" : false, "proxy" : { - "/systemapi" : { + "/systemapi" : { "target" : "http://192.168.0.11:9090", "changeOrigin" : true, "secure" : false, @@ -89,26 +89,26 @@ "^/uboeApi" : "/api" } }, - "/statApi" : { - // 目标代理服务器地址 - "target" : "http://192.168.0.11:9080", - "changeOrigin" : true, - "logLevel" :"debug", - "secure" : false, - "pathRewrite" : { - "^/statApi": "" - } - }, - "/socialApi": { - // 目标代理服务器地址 - "target": "http://192.168.0.11:9081", - "changeOrigin": true, - "logLevel":"debug", - "secure": false, - "pathRewrite": { - "^/socialApi": "" - } - } + "/statApi" : { + // 目标代理服务器地址 + "target" : "http://192.168.0.11:9080", + "changeOrigin" : true, + "logLevel" : "debug", + "secure" : false, + "pathRewrite" : { + "^/statApi" : "" + } + }, + "/socialApi" : { + // 目标代理服务器地址 + "target" : "http://192.168.0.11:9081", + "changeOrigin" : true, + "logLevel" : "debug", + "secure" : false, + "pathRewrite" : { + "^/socialApi" : "" + } + } } }, "optimization" : { @@ -118,7 +118,7 @@ }, "router" : { "mode" : "history", - "base" : "/mobile" + "base" : "/mobile-release" }, "template" : "index.html", "title" : "京东方大学堂"