From 5ec1d84ca51df55a023f07f12cd209f09d28fd5b Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Thu, 9 Aug 2018 19:37:08 +0800 Subject: [PATCH] bug fixed Former-commit-id: 238ed16728c0be22854ec5f3fefabff707b7d1ba [formerly 238ed16728c0be22854ec5f3fefabff707b7d1ba [formerly 238ed16728c0be22854ec5f3fefabff707b7d1ba [formerly 238ed16728c0be22854ec5f3fefabff707b7d1ba [formerly 249790559ed1c4ca07ebf4bb1ceb3f7947bfcc60 [formerly d3d071acf90e6ff13f20700d29da681dd6fb2ea3]]]]] Former-commit-id: 2e67366e7a2e5c37390f62f866f49058754bb618 Former-commit-id: d4caf73a9cecd20f20ce844b821c475a16afcbb8 Former-commit-id: 5219b66ff691e40b792d24b8093e111418748a60 [formerly ecc3fbea6954d1ab664ad0d9520027c23f26007a] Former-commit-id: 92982117b9c5fe9de2a05c250f8959d93ea6c723 Former-commit-id: 57a2293971a72e6fa2ebf241bbd54c448d91e9e2 Former-commit-id: cf1369733bd29475cc69525b1189d81498379db0 Former-commit-id: 5e666d7738c4d11c856f21b8a9dd3e64a98e7e44 Former-commit-id: 5fad4e12a8b423b48633a96fc61bd95700bae651 --- package.json | 2 +- .../header-aside/components/tabs/index.vue | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 817a42326..e2440db5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d2-admin", - "version": "1.1.9", + "version": "1.1.11", "private": true, "scripts": { "serve": "vue-cli-service serve --open", diff --git a/src/layout/header-aside/components/tabs/index.vue b/src/layout/header-aside/components/tabs/index.vue index bc50c3360..a9fe3b5a1 100644 --- a/src/layout/header-aside/components/tabs/index.vue +++ b/src/layout/header-aside/components/tabs/index.vue @@ -32,7 +32,7 @@ + @command="command => handleControlItemClick(command)"> @@ -127,21 +127,13 @@ export default { * @description 接收点击关闭控制上选项的事件 */ handleControlItemClick (command, tagName = null) { - // 关闭右键菜单 - this.contextmenuFlag = false - // 判断触发方式 - let pageSelect = tagName - if (pageSelect) { - if (pageSelect._isVue) { - pageSelect = null - } + if (tagName) { + this.contextmenuFlag = false } - // 设置传递参数 const params = { - pageSelect, + pageSelect: tagName, vm: this } - // 根据不同的类型触发不同的关闭事件 switch (command) { case 'left': this.d2adminTagCloseLeft(params)