diff --git a/nezha-fronted/src/components/common/popBox/selectArea.vue b/nezha-fronted/src/components/common/popBox/selectArea.vue index 6aafaaddb..3d40d3807 100644 --- a/nezha-fronted/src/components/common/popBox/selectArea.vue +++ b/nezha-fronted/src/components/common/popBox/selectArea.vue @@ -22,6 +22,7 @@ :expand-on-click-node="false" check-on-click-node check-strictly + highlight-current @node-click="selectArea" @check-change="clearOthers"> @@ -44,10 +45,16 @@ props:{ placement: {type: String}, isEdit: {type: Boolean, default: true}, - areaData: {type: Array} + areaData: {type: Array}, + currentArea: {type: Number} }, created() { }, + mounted() { + this.$nextTick(() => { + this.$refs.areaTree.setCurrentKey(this.currentArea); + }); + }, data(){ return { popBox: {show: false}, diff --git a/nezha-fronted/src/components/common/rightBox/dcBox.vue b/nezha-fronted/src/components/common/rightBox/dcBox.vue index 37a135a4d..9e75dfe76 100644 --- a/nezha-fronted/src/components/common/rightBox/dcBox.vue +++ b/nezha-fronted/src/components/common/rightBox/dcBox.vue @@ -51,7 +51,7 @@