Merge branch 'hotfix/tag关闭报错' into develop
Former-commit-id: f31e04d88383fec9156bf1cc43de90d49e4203a8 [formerly f31e04d88383fec9156bf1cc43de90d49e4203a8 [formerly f31e04d88383fec9156bf1cc43de90d49e4203a8 [formerly f31e04d88383fec9156bf1cc43de90d49e4203a8 [formerly 6834ed518f37e235143b303f1cec9ec272937935 [formerly f5dfd9215d7f722fd45fc129820e46fa1a1aa887]]]]] Former-commit-id: 0d808cc94a9079d32253d5aea9858a016c3fd066 Former-commit-id: 11005e887e03f53e6e7953a4f76ec6640022489d Former-commit-id: 88daacb76a355ce50125723953c287c4dc59d369 [formerly d413f56cc97a926616977f89764fb9607934aa30] Former-commit-id: 62af35539f442e2fe1e62d63976f534637418064 Former-commit-id: 614e4fe267cf0274e3896ecf83ae8dc50bc02800 Former-commit-id: d20ade6216bd33ffef5e8877e54e87d1b6b0b618 Former-commit-id: 235433bc10e683db1d1748a9015bdf5e9535223b Former-commit-id: c9eb7b6076dd319c15455af2358d833dbf3b12af
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