From 39c9161264a84cba3856550cf716b79f7c2bb5fb Mon Sep 17 00:00:00 2001 From: truthhun <1272881215@qq.com> Date: Mon, 16 Oct 2023 16:33:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=A8=AA=E5=B9=85=E5=9C=A8?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E7=9A=84=E9=AB=98=E5=BA=A6=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/pages/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/pages/index.vue b/web/pages/index.vue index 26093af..8d405d9 100644 --- a/web/pages/index.vue +++ b/web/pages/index.vue @@ -352,7 +352,6 @@ export default { ...mapGetters('setting', ['settings']), }, async created() { - this.carouselHeight = this.isMobile ? '250px' : '360px' await Promise.all([ this.getRecommendDocuments(), this.listBanner(), @@ -362,6 +361,9 @@ export default { this.getUser(), ]) }, + mounted() { + this.carouselHeight = this.isMobile ? '250px' : '360px' + }, methods: { ...mapActions('user', ['logout', 'getUser']), getIcon,