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

pref:优化环境

parent 58aee412
#生产环境
NODE_ENV = "production"
VUE_APP_API_BASE_URL=/
\ No newline at end of file
VUE_APP_API_BASE_URL=/basics_api/base
VUE_APP_API_portal_URL=/portal_home
\ No newline at end of file
#测试环境
NODE_ENV = "test"
VUE_APP_API_BASE_URL=/
\ No newline at end of file
VUE_APP_API_BASE_URL=/basics_api/base
VUE_APP_API_portal_URL=/portal_home
\ No newline at end of file
......@@ -30,7 +30,7 @@ export default {
} else {
this.$message.warning("跳转失败,请重新登录");
setTimeout(() => {
location.href = process.env.VUE_APP_API_portal_URL + "/#/";
location.href = process.env.VUE_APP_API_portal_URL;
}, 2000);
}
},
......
......@@ -36,7 +36,7 @@ const loginGuard = (to, from, next) => {
if (to.path === "/jump") {
next();
} else {
location.href = process.env.VUE_APP_API_portal_URL + "/#/";
location.href = process.env.VUE_APP_API_portal_URL;
}
}
// const {message} = options
......
......@@ -42,7 +42,7 @@ const resMsg = {
maxCount: 1,
});
setTimeout(() => {
location.href = process.env.VUE_APP_API_portal_URL + "/#/";
location.href = process.env.VUE_APP_API_portal_URL;
}, 2000);
} else if (code === -1) {
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