fix: 修复zTree添加、移动资产时menu无法关闭问题

This commit is contained in:
“huailei000”
2022-05-18 16:29:09 +08:00
committed by 老广
parent 5835ac7f70
commit 8f7bcc2e26

View File

@@ -95,6 +95,7 @@ export default {
computed: {
iVisible: {
set(val) {
this.$parent?.hideMenu()
this.$emit('update:visible', val)
},
get() {
@@ -133,6 +134,7 @@ export default {
$('#tree-refresh').trigger('click')
this.$message.success(this.$t('common.updateSuccessMsg'))
}).catch(error => {
this.$parent?.hideMenu()
this.$message.error(this.$t('common.updateErrorMsg' + ' ' + error))
})
},