diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue index 85a3754..3d0eda4 100644 --- a/src/components/breadcrumb/index.vue +++ b/src/components/breadcrumb/index.vue @@ -1,7 +1,7 @@ @@ -26,7 +26,6 @@ export default { }, methods: { update(data){ - console.log(2222,data) this.pages = data.split('/') } } diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 2c0c9fb..fb9e47e 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -64,12 +64,16 @@ export default { }; }, mounted() { - this.menus = this.token ? this.loginedMenu : this.touristMenu + this.menus = util.local.get(Setting.tokenKey) ? this.loginedMenu : this.touristMenu }, methods: { jump(item) { - this.active = item.index - this.$router.push(item.index).catch(err => {}) + if (!util.local.get(Setting.tokenKey) && this.loginedMenu.find(e => e.index === item.index)) { + location.reload() + } else { + this.active = item.index + this.$router.push(item.index).catch(err => {}) + } } } }; diff --git a/src/pages/ass/list/index.vue b/src/pages/ass/list/index.vue index 6e29f53..2271cec 100644 --- a/src/pages/ass/list/index.vue +++ b/src/pages/ass/list/index.vue @@ -71,17 +71,17 @@ - - + + - + - + diff --git a/src/pages/station/list/index.vue b/src/pages/station/list/index.vue index 3d0fe10..2ca33a1 100644 --- a/src/pages/station/list/index.vue +++ b/src/pages/station/list/index.vue @@ -1,6 +1,6 @@