Merge branch 'hotfix/tag关闭报错'
Former-commit-id: a216727bfb9424258189533c541e7339cbbb6de4 [formerly a216727bfb9424258189533c541e7339cbbb6de4 [formerly a216727bfb9424258189533c541e7339cbbb6de4 [formerly a216727bfb9424258189533c541e7339cbbb6de4 [formerly 70862785b77762af19185b81366f42d4eb1c6fc7 [formerly 257e9ff31efb4b021e84719ddb94c76860367259]]]]] Former-commit-id: 0fa7c5c6e7c53097d56e24bafd0be2fda7c00eb0 Former-commit-id: 5aeb503678174d00922f23214bbaae6b5b8a419a 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
This commit is contained in:
@@ -127,13 +127,21 @@ export default {
|
|||||||
* @description 接收点击关闭控制上选项的事件
|
* @description 接收点击关闭控制上选项的事件
|
||||||
*/
|
*/
|
||||||
handleControlItemClick (command, tagName = null) {
|
handleControlItemClick (command, tagName = null) {
|
||||||
if (tagName) {
|
// 关闭右键菜单
|
||||||
this.contextmenuFlag = false
|
this.contextmenuFlag = false
|
||||||
|
// 判断触发方式
|
||||||
|
let pageSelect = tagName
|
||||||
|
if (pageSelect) {
|
||||||
|
if (pageSelect._isVue) {
|
||||||
|
pageSelect = null
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// 设置传递参数
|
||||||
const params = {
|
const params = {
|
||||||
pageSelect: tagName,
|
pageSelect,
|
||||||
vm: this
|
vm: this
|
||||||
}
|
}
|
||||||
|
// 根据不同的类型触发不同的关闭事件
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case 'left':
|
case 'left':
|
||||||
this.d2adminTagCloseLeft(params)
|
this.d2adminTagCloseLeft(params)
|
||||||
|
|||||||
Reference in New Issue
Block a user