diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 785f4c4..19feea9 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -139,7 +139,6 @@ function goOneMap() { router.push({ path: '/chengguanweiScreen' }); - localStorage.setItem('routerPartKFC', 'Project'); //默认加载项目首页 } // 消息弹框 @@ -238,7 +237,6 @@ height: 100%; display: flex; align-items: center; - justify-content: center; overflow: hidden; .part { background: url('@/assets/images/login/moren_img.png') no-repeat; diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 785f4c4..19feea9 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -139,7 +139,6 @@ function goOneMap() { router.push({ path: '/chengguanweiScreen' }); - localStorage.setItem('routerPartKFC', 'Project'); //默认加载项目首页 } // 消息弹框 @@ -238,7 +237,6 @@ height: 100%; display: flex; align-items: center; - justify-content: center; overflow: hidden; .part { background: url('@/assets/images/login/moren_img.png') no-repeat; diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 021832e..9a4eb1d 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -36,6 +36,7 @@ localStorage.setItem('routerPartKFC', rewriteRoutes[1].name); //默认加载第一个菜单 } else { router.push({ path: '/chengguanweiScreen' }); + localStorage.setItem('routerPartKFC', rewriteRoutes[1].name); //默认加载第一个菜单 } }); }); diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 785f4c4..19feea9 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -139,7 +139,6 @@ function goOneMap() { router.push({ path: '/chengguanweiScreen' }); - localStorage.setItem('routerPartKFC', 'Project'); //默认加载项目首页 } // 消息弹框 @@ -238,7 +237,6 @@ height: 100%; display: flex; align-items: center; - justify-content: center; overflow: hidden; .part { background: url('@/assets/images/login/moren_img.png') no-repeat; diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 021832e..9a4eb1d 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -36,6 +36,7 @@ localStorage.setItem('routerPartKFC', rewriteRoutes[1].name); //默认加载第一个菜单 } else { router.push({ path: '/chengguanweiScreen' }); + localStorage.setItem('routerPartKFC', rewriteRoutes[1].name); //默认加载第一个菜单 } }); }); diff --git a/src/views/login.vue b/src/views/login.vue index 026d8eb..c0f9345 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -133,7 +133,7 @@ }); // 登录成功之后都加载对应路由 router.push({ path: '/chengguanweiScreen' }); - localStorage.setItem('routerPartKFC', 'Project'); //默认加载项目综合管控首页 + // localStorage.setItem('routerPartKFC', 'Project'); //默认加载项目综合管控首页 loginLoading.value = false; }) .catch(err => {