diff --git a/src/layout/components/tags.vue b/src/layout/components/tags.vue index 732f7862..f7c5e33b 100644 --- a/src/layout/components/tags.vue +++ b/src/layout/components/tags.vue @@ -99,7 +99,7 @@ }, //增加tag addViewTags(route) { - if(route.name){ + if(route.name && !route.meta.fullpage){ this.$store.commit("pushViewTags",route) this.$store.commit("pushKeepLive",route.name) } diff --git a/src/router/index.js b/src/router/index.js index fd4046d2..9c7b2ad6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -53,7 +53,11 @@ router.beforeEach(async (to, from, next) => { }); return false; } - + + //整页路由处理 + if(to.meta.fullpage){ + to.matched = [to.matched[to.matched.length-1]] + } //加载API路由 if(!isGetApiRouter){ let menu = tool.data.get("MENU"); diff --git a/src/views/other/fullpage.vue b/src/views/other/fullpage.vue new file mode 100644 index 00000000..d6ecd3d2 --- /dev/null +++ b/src/views/other/fullpage.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/src/views/other/viewTags.vue b/src/views/other/viewTags.vue index e1740e8e..20bdc92b 100644 --- a/src/views/other/viewTags.vue +++ b/src/views/other/viewTags.vue @@ -23,6 +23,10 @@ + + fullpage + + @@ -66,6 +70,9 @@ }, set1(){ useTabs.setTitle(this.input) + }, + fullpage(){ + this.$router.push('/other/fullpage') } } }