Commit 528a22ed authored by “yiyousong”'s avatar “yiyousong”

pref:优化环境

parent 58aee412
#生产环境 #生产环境
NODE_ENV = "production" NODE_ENV = "production"
VUE_APP_API_BASE_URL=/ VUE_APP_API_BASE_URL=/basics_api/base
\ No newline at end of file VUE_APP_API_portal_URL=/portal_home
\ No newline at end of file
#测试环境 #测试环境
NODE_ENV = "test" NODE_ENV = "test"
VUE_APP_API_BASE_URL=/ VUE_APP_API_BASE_URL=/basics_api/base
\ No newline at end of file VUE_APP_API_portal_URL=/portal_home
\ No newline at end of file
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
} else { } else {
this.$message.warning("跳转失败,请重新登录"); this.$message.warning("跳转失败,请重新登录");
setTimeout(() => { setTimeout(() => {
location.href = process.env.VUE_APP_API_portal_URL + "/#/"; location.href = process.env.VUE_APP_API_portal_URL;
}, 2000); }, 2000);
} }
}, },
......
...@@ -36,7 +36,7 @@ const loginGuard = (to, from, next) => { ...@@ -36,7 +36,7 @@ const loginGuard = (to, from, next) => {
if (to.path === "/jump") { if (to.path === "/jump") {
next(); next();
} else { } else {
location.href = process.env.VUE_APP_API_portal_URL + "/#/"; location.href = process.env.VUE_APP_API_portal_URL;
} }
} }
// const {message} = options // const {message} = options
......
...@@ -42,7 +42,7 @@ const resMsg = { ...@@ -42,7 +42,7 @@ const resMsg = {
maxCount: 1, maxCount: 1,
}); });
setTimeout(() => { setTimeout(() => {
location.href = process.env.VUE_APP_API_portal_URL + "/#/"; location.href = process.env.VUE_APP_API_portal_URL;
}, 2000); }, 2000);
} else if (code === -1) { } else if (code === -1) {
message.error({ message.error({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment