Skip to content

Commit

Permalink
Merge branch 'hotfix/tag关闭报错'
Browse files Browse the repository at this point in the history
Former-commit-id: a216727bfb9424258189533c541e7339cbbb6de4 [formerly a216727bfb9424258189533c541e7339cbbb6de4 [formerly a216727bfb9424258189533c541e7339cbbb6de4 [formerly a216727bfb9424258189533c541e7339cbbb6de4 [formerly 7086278 [formerly 257e9ff31efb4b021e84719ddb94c76860367259]]]]]
Former-commit-id: 0fa7c5c
Former-commit-id: 5aeb503
Former-commit-id: 6f7b6acb86cadfdf56203860d1f4f26ac6da8711 [formerly a5d30ec02de3399f3e8be6db5ab462edaee801bd]
Former-commit-id: 0df8fa59f3dc72c3044e3d61117a2dbd71874047
Former-commit-id: 3d7c95347eb7f1bb341f0a61988882691aebee8d
Former-commit-id: ed6dfd1ef9b9e07a41a5a19c4a2344068b22e9c1
Former-commit-id: a150421d314edc5cef99b8a0244cb14fa46e1f8e
Former-commit-id: dcad91a27d77b7f4e6eae9ca33334f84b1100cc0
  • Loading branch information
FairyEver committed Aug 9, 2018
2 parents 2f5c94e + 0aa6b66 commit 4abdc61
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/layout/header-aside/components/tabs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,21 @@ export default {
* @description 接收点击关闭控制上选项的事件
*/
handleControlItemClick (command, tagName = null) {
if (tagName) {
this.contextmenuFlag = false
// 关闭右键菜单
this.contextmenuFlag = false
// 判断触发方式
let pageSelect = tagName
if (pageSelect) {
if (pageSelect._isVue) {
pageSelect = null
}
}
// 设置传递参数
const params = {
pageSelect: tagName,
pageSelect,
vm: this
}
// 根据不同的类型触发不同的关闭事件
switch (command) {
case 'left':
this.d2adminTagCloseLeft(params)
Expand Down

0 comments on commit 4abdc61

Please sign in to comment.