diff --git a/.env.development b/.env.development index a190fed..f19ab27 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ # @Author: 张涛 # @Date: 2023-07-18 13:04:50 # @LastEditors: JC9527 - # @LastEditTime: 2023-10-11 08:53:18 + # @LastEditTime: 2023-10-11 09:40:45 # @FilePath: \Mudu2PC\.env.development ### # 页面标题 @@ -13,8 +13,8 @@ ENV = 'development' # 苏州应急执法计划管理系统/开发环境 # VUE_APP_BASE_API = 'http://39.101.188.84:9033' -# VUE_APP_BASE_API = 'http://192.168.0.105:9033' -VUE_APP_BASE_API = 'http://180.108.205.123:13002' +VUE_APP_BASE_API = 'http://192.168.0.105:9033' +# VUE_APP_BASE_API = 'http://180.108.205.123:13002' # VUE_APP_BASE_API = '/api' diff --git a/.env.production b/.env.production index ad61603..a010f1a 100644 --- a/.env.production +++ b/.env.production @@ -6,8 +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://180.108.205.123:13002' +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 6a61d52..0eb36d7 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -138,20 +138,20 @@ export default { }) .then(() => { this.$store.dispatch("LogOut").then(() => { - // location.href = process.env.NODE_ENV === "production" - // ? "/demo/suzhouyingjiPC/" - // : "/"; + location.href = process.env.NODE_ENV === "production" + ? "/demo/suzhouyingjiPC/" + : "/"; - let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork') - if(process.env.NODE_ENV === "production") { - if(isGovernmentAffairsNetwork == '1') { - location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F' - } else { - location.href = "/" - } - } else { - location.href = "/" - } + // let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork') + // if(process.env.NODE_ENV === "production") { + // if(isGovernmentAffairsNetwork == '1') { + // location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F' + // } else { + // location.href = "/" + // } + // } else { + // location.href = "/" + // } }); }) .catch(() => {}); diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index 4c510c2..3a07d78 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -112,21 +112,21 @@ export default { }) .then(() => { this.$store.dispatch("LogOut").then(() => { - // location.href = process.env.NODE_ENV === "production" - // ? "/demo/suzhouyingjiPC/" - // : "/"; - let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork') - if(process.env.NODE_ENV === "production") { - console.log('production') - if(isGovernmentAffairsNetwork == '1') { - console.log('进入跳转政务网的登录页') - location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F' - } else { - location.href = "/" - } - } else { - location.href = "/" - } + location.href = process.env.NODE_ENV === "production" + ? "/demo/suzhouyingjiPC/" + : "/"; + // let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork') + // if(process.env.NODE_ENV === "production") { + // console.log('production') + // if(isGovernmentAffairsNetwork == '1') { + // console.log('进入跳转政务网的登录页') + // location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F' + // } else { + // location.href = "/" + // } + // } else { + // location.href = "/" + // } }); }) .catch(() => {}); diff --git a/src/router/index.js b/src/router/index.js index afc559e..fbf6984 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -210,8 +210,8 @@ Router.prototype.replace = function push(location) { }; export default new Router({ - mode: "history", // 去掉url中的# - base: "/", + // mode: "history", // 去掉url中的# + // base: "/", scrollBehavior: () => ({ y: 0 }), routes: constantRoutes, }); diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index 7d13d7f..e9eaa86 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -215,7 +215,7 @@ diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue index 8693071..3701e10 100644 --- a/src/views/yingji/planManage.vue +++ b/src/views/yingji/planManage.vue @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-09-04 10:20:06 * @LastEditors: JC9527 - * @LastEditTime: 2023-10-10 16:14:06 + * @LastEditTime: 2023-10-11 10:28:00 -->