BUG 30883

This commit is contained in:
aixianling
2022-08-17 15:18:06 +08:00
parent 115bde1294
commit 916a28ddb9
2 changed files with 7 additions and 14 deletions

View File

@@ -76,8 +76,11 @@ export default {
root(v) {
v && (this.getFullArea(v))
},
value(v) {
v && !this.areaName && this.getAreaName(this.value)
value: {
immediate: true,
handler(v) {
v && !this.areaName && this.getAreaName(this.value)
}
},
fullArea(v) {
v && this.value && !this.multiple && this.$emit('update:fullName', v?.map(e => e.name)?.join("") || "")
@@ -88,7 +91,6 @@ export default {
},
created() {
this.getRootArea()
this.value && this.getAreaName(this.value)
},
methods: {
getRootArea() {