From 18dc387cf04c8e3a54604322f1d14afb303cf0b6 Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 5 Apr 2022 12:44:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A2=98=E8=89=B2=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boot/global.js | 3 ++- src/components/ConfigurationMenu.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boot/global.js b/src/boot/global.js index d5f702b..d32c7d1 100644 --- a/src/boot/global.js +++ b/src/boot/global.js @@ -7,7 +7,8 @@ import programmings from '../js/programs.js'; // 配置数据存取 let defaultProfile = { commandCardStyle: "normal", - primaryColor: "#419488" + primaryColor: "#009688", + defaultPrimaryColor: "#009688", } let userProfile = UTOOLS.getDB( UTOOLS.DBPRE.CFG + "preferences" diff --git a/src/components/ConfigurationMenu.vue b/src/components/ConfigurationMenu.vue index 3e47624..fbfca49 100644 --- a/src/components/ConfigurationMenu.vue +++ b/src/components/ConfigurationMenu.vue @@ -247,7 +247,7 @@ export default { this.setCssVar("primary", this.$profile.primaryColor); }, resetPrimary() { - this.$profile.primaryColor = "#419488"; + this.$profile.primaryColor = this.$profile.defaultPrimaryColor; this.setPrimaryColor(); }, },