diff --git a/src/components/AiAreaPicker.vue b/src/components/AiAreaPicker.vue index fa22aa75..b02eaf1a 100644 --- a/src/components/AiAreaPicker.vue +++ b/src/components/AiAreaPicker.vue @@ -99,6 +99,14 @@ export default { watch: { areaId(v) { v && (this.getFullArea()) + }, + + fullArea: { + handler(v) { + this.$nextTick(() => { + this.scrollHeight() + }) + } } }, mounted () { @@ -127,6 +135,7 @@ export default { } else { this.fullArea = res.data } + return this.fullArea } }) @@ -142,7 +151,7 @@ export default { if (self.id) { this.list.unshift(self) } - this.scrollHeight() + this.scrollHeight() } }) },