From aa25af02529d2b9d531715ccda3111d2bdbb5976 Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Mon, 14 Sep 2020 11:29:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20exception=20of=20saving=20local=20settin?= =?UTF-8?q?g;=20=E4=BF=AE=E5=A4=8D=EF=BC=9A=E4=BF=9D=E5=AD=98=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=88=B0=E6=9C=AC=E5=9C=B0=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/themeUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/themeUtil.js b/src/utils/themeUtil.js index a24de01..cafe2d3 100644 --- a/src/utils/themeUtil.js +++ b/src/utils/themeUtil.js @@ -66,7 +66,7 @@ function modifyVars(color) { } function loadLocalTheme(localSetting) { - if (localSetting) { + if (localSetting && localSetting.theme) { let {color, mode} = localSetting.theme color = color || theme.color mode = mode || theme.mode