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

pref:修改环境变量

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