mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-03 07:54:45 +00:00
fix: 修复zTree添加、移动资产时menu无法关闭问题
This commit is contained in:
@@ -95,6 +95,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
iVisible: {
|
iVisible: {
|
||||||
set(val) {
|
set(val) {
|
||||||
|
this.$parent?.hideMenu()
|
||||||
this.$emit('update:visible', val)
|
this.$emit('update:visible', val)
|
||||||
},
|
},
|
||||||
get() {
|
get() {
|
||||||
@@ -133,6 +134,7 @@ export default {
|
|||||||
$('#tree-refresh').trigger('click')
|
$('#tree-refresh').trigger('click')
|
||||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
this.$parent?.hideMenu()
|
||||||
this.$message.error(this.$t('common.updateErrorMsg' + ' ' + error))
|
this.$message.error(this.$t('common.updateErrorMsg' + ' ' + error))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user