From 57bb15867955cb21780d26fd67e479553d79b4db Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Mon, 28 Aug 2023 17:25:59 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=B8=BB=E9=A2=98=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/App.vue b/App.vue index 7351ed19..38f91fa0 100644 --- a/App.vue +++ b/App.vue @@ -1800,18 +1800,17 @@ // 设置主题 set_theme_value() { - this.get_theme_value(); + let theme = this.get_theme_value(); // import `@/common/theme/theme-${mode}.scss`; //记住不能import哦 require(`./common/css/theme/${theme}.css`); } - }, /** * 小程序初始化 */ onLaunch(params) { - this.set_theme_value() + this.globalData.set_theme_value() }, /**