From 1962bd771d081cd9c144ab86d02bf9f62dd974c5 Mon Sep 17 00:00:00 2001 From: piexlmax Date: Wed, 1 Sep 2021 14:29:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B3=E9=97=AD=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E9=A1=B5=E9=9D=A2=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/core/gin-vue-admin.js | 1 - .../view/layout/aside/historyComponent/history.vue | 13 +++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/core/gin-vue-admin.js b/web/src/core/gin-vue-admin.js index 146eed3d..e104f69a 100644 --- a/web/src/core/gin-vue-admin.js +++ b/web/src/core/gin-vue-admin.js @@ -7,7 +7,6 @@ import config from './config' export const run = function(app) { app.config.globalProperties.$GIN_VUE_ADMIN = config - // app.use(uploader) console.log(` diff --git a/web/src/view/layout/aside/historyComponent/history.vue b/web/src/view/layout/aside/historyComponent/history.vue index 06abb4a8..ee26c2f6 100644 --- a/web/src/view/layout/aside/historyComponent/history.vue +++ b/web/src/view/layout/aside/historyComponent/history.vue @@ -16,7 +16,9 @@ :tab="item" class="gva-tab" > - {{ item.meta.title }} + @@ -107,11 +109,10 @@ export default { } this.setTab(this.$route) }, - mounted(){ - //全局监听 关闭当前页面函数 - this.$bus.on('closeThisPage', ()=>{ - const router = this.$route.path.split("/") - this.removeTab(`${router[router.length - 1]}`) + mounted() { + // 全局监听 关闭当前页面函数 + emitter.on('closeThisPage', () => { + this.removeTab(this.name(this.$route)) }) }, beforeDestroy() { -- GitLab