mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 14:38:02 +00:00
fix: 修复zTree添加、移动资产时menu无法关闭问题
This commit is contained in:
@@ -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))
|
||||
})
|
||||
},
|
||||
|
Reference in New Issue
Block a user