fix: 修复资产列表-添加资产到节点后资产树无法刷新问题

This commit is contained in:
“huailei000”
2023-02-06 16:51:47 +08:00
committed by huailei
parent 494138719f
commit 49f1ca2329
2 changed files with 5 additions and 0 deletions

View File

@@ -114,9 +114,11 @@ export default {
methods: { methods: {
handleConfirm() { handleConfirm() {
this.$emit('confirm', this.rowSelected, this.rowsAdd) this.$emit('confirm', this.rowSelected, this.rowsAdd)
this.$eventBus.$emit('treeComponentKey')
}, },
handleCancel() { handleCancel() {
this.$emit('cancel') this.$emit('cancel')
this.$eventBus.$emit('treeComponentKey')
}, },
addRowToSelect(row) { addRowToSelect(row) {
const selectValueIndex = this.rowSelected.indexOf(row.id) const selectValueIndex = this.rowSelected.indexOf(row.id)

View File

@@ -97,6 +97,9 @@ export default {
}, },
async mounted() { async mounted() {
this.iActiveMenu = await this.getPropActiveTab() this.iActiveMenu = await this.getPropActiveTab()
this.$eventBus.$on('treeComponentKey', () => {
this.componentKey += 1
})
}, },
methods: { methods: {
hideRMenu() { hideRMenu() {