This commit is contained in:
yanran200730
2022-01-13 18:48:39 +08:00
parent f6853c7970
commit 1d02347647

View File

@@ -99,6 +99,14 @@ export default {
watch: { watch: {
areaId(v) { areaId(v) {
v && (this.getFullArea()) v && (this.getFullArea())
},
fullArea: {
handler(v) {
this.$nextTick(() => {
this.scrollHeight()
})
}
} }
}, },
mounted () { mounted () {
@@ -127,6 +135,7 @@ export default {
} else { } else {
this.fullArea = res.data this.fullArea = res.data
} }
return this.fullArea return this.fullArea
} }
}) })
@@ -142,7 +151,7 @@ export default {
if (self.id) { if (self.id) {
this.list.unshift(self) this.list.unshift(self)
} }
this.scrollHeight() this.scrollHeight()
} }
}) })
}, },