From 1d02347647184538a90a14003fc1e4ede1b18b56 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 13 Jan 2022 18:48:39 +0800 Subject: [PATCH] bug --- src/components/AiAreaPicker.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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() } }) },