mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 22:36:23 +00:00
fix: 修复资产列表-添加资产到节点后资产树无法刷新问题
This commit is contained in:
@@ -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)
|
||||||
|
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user