diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue index eeeafb8..d1b6a9f 100644 --- a/src/layouts/home/index.vue +++ b/src/layouts/home/index.vue @@ -57,6 +57,6 @@ export default { \ No newline at end of file diff --git a/src/pages/index/list/index.vue b/src/pages/index/list/index.vue index 8f65678..9f156d0 100644 --- a/src/pages/index/list/index.vue +++ b/src/pages/index/list/index.vue @@ -124,9 +124,9 @@ - +
- +
@@ -150,7 +150,8 @@ export default { }, watch: { '$route.path':function(val){ // 控制弹框显隐 - if(val.split('/').pop()==="manage"){ + let arr = val.split('/').slice(-2) + if(arr.pop()==="manage"||arr[0]==='manage'){ this.manageVisible = true }else{ this.manageVisible = false @@ -158,10 +159,13 @@ export default { } }, created(){ - console.log(this.$route.path.split('/').pop(),'path'); - if(this.$route.path.split('/').pop()==="manage"){// 使用children当组件 + let arr = this.$route.path.split('/').slice(-2) + if(arr.pop()==="manage"||arr[0]==='manage'){ this.manageVisible = true + }else{ + this.manageVisible = false } + }, mounted() { @@ -186,7 +190,7 @@ export default { // 展示系统管理 showManage(){ this.manageVisible=true - this.$router.push('/index/list/manage') + this.$router.push('/index/list/manage/consumerClient') } } }; @@ -194,9 +198,10 @@ export default { \ No newline at end of file diff --git a/src/pages/manage/index/index.vue b/src/pages/manage/index/index.vue index fec1a6d..187c57d 100644 --- a/src/pages/manage/index/index.vue +++ b/src/pages/manage/index/index.vue @@ -1,5 +1,5 @@