diff --git a/.env.development b/.env.development index 0909b16..316dd69 100644 --- a/.env.development +++ b/.env.development @@ -12,8 +12,8 @@ VUE_APP_TITLE = 苏州应急执法计划管理系统 ENV = 'development' # 苏州应急执法计划管理系统/开发环境 -# VUE_APP_BASE_API = 'http://localhost:9028' -VUE_APP_BASE_API = '/api' +VUE_APP_BASE_API = 'http://39.101.188.84:9033' +# VUE_APP_BASE_API = '/api' # 路由懒加载 diff --git a/.env.production b/.env.production index c213c90..ad61603 100644 --- a/.env.production +++ b/.env.production @@ -6,7 +6,8 @@ ENV = 'production' # 苏州应急执法计划管理系统/生产环境 # VUE_APP_BASE_API = 'http://192.168.0.105:9033' -VUE_APP_BASE_API = 'http://39.101.188.84:9033' +# VUE_APP_BASE_API = 'http://39.101.188.84:9033' +VUE_APP_BASE_API = 'http://180.108.205.123:13002' # 路由懒加载 diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 4d4a105..2feaa2c 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -139,9 +139,11 @@ export default { .then(() => { this.$store.dispatch("LogOut").then(() => { location.href = - process.env.NODE_ENV === "production" - ? "/demo/suzhouyingjiPC/" - : "/"; + // process.env.NODE_ENV === "production" + // ? "/demo/suzhouyingjiPC/" + // : "/"; + location.href = + process.env.NODE_ENV === "production" ? "./" : "/"; }); }) .catch(() => {}); diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index d4d4177..4e0aca1 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -1,6 +1,6 @@