Commit 68b9f2cc authored by “yiyousong”'s avatar “yiyousong”

pref:修改环境变量

parent 8cc833a9
#开发环境 #开发环境
NODE_ENV = "development" NODE_ENV = "development"
VUE_APP_API_BASE_URL=http://192.168.0.98:11078 VUE_APP_API_BASE_URL=http://192.168.0.98:11078
#VUE_APP_API_BASE_URL=http://192.168.0.98:11071/zwfw \ No newline at end of file
#VUE_APP_API_BASE_URL=http://192.168.0.98:11023
#VUE_APP_API_BASE_URL=http://192.168.0.217:17311
\ No newline at end of file
#生产环境 #生产环境
NODE_ENV = "production" NODE_ENV = "production"
VUE_APP_API_BASE_URL=http://192.168.0.98:17008 VUE_APP_API_BASE_URL=http://192.168.0.98:17008
#基础设置
VUE_APP_API_basics_URL=/basics_api/base
#门户
VUE_APP_API_portal_URL=/portal_home
#开发环境 #开发环境
NODE_ENV = "test" NODE_ENV = "test"
VUE_APP_API_BASE_URL=http://192.168.0.98:11078 VUE_APP_API_BASE_URL=http://192.168.0.98:11078
\ No newline at end of file #基础设置
VUE_APP_API_basics_URL=/basics_api/base
#门户
VUE_APP_API_portal_URL=/portal_home
\ No newline at end of file
...@@ -8,7 +8,7 @@ import local from "@/utils/local"; ...@@ -8,7 +8,7 @@ import local from "@/utils/local";
export default { export default {
data() { data() {
return { return {
portal: process.env.VUE_APP_API_portal_URL + "/#/", portal: process.env.VUE_APP_API_portal_URL,
}; };
}, },
created() { created() {
......
...@@ -40,7 +40,7 @@ router.beforeEach((to, from, next) => { ...@@ -40,7 +40,7 @@ router.beforeEach((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;
// next({ path: "/login" }); // next({ path: "/login" });
} }
} }
......
...@@ -40,7 +40,7 @@ axios.interceptors.response.use( ...@@ -40,7 +40,7 @@ axios.interceptors.response.use(
message: msg, message: msg,
}); });
setTimeout(() => { setTimeout(() => {
location.href = process.env.VUE_APP_API_portal_URL + "/#/"; location.href = process.env.VUE_APP_API_portal_URL;
}, 2000); }, 2000);
} }
} }
......
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