From 6dcfd0e85530d9bdac0d1e67829a5b92267db8d9 Mon Sep 17 00:00:00 2001 From: izory <791736813@qq.com> Date: Sat, 9 Oct 2021 15:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BB=E9=A2=98=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Vue/package.json | 2 +- ZR.Vue/src/components/ThemePicker/index.vue | 1 + ZR.Vue/src/components/TopNav/index.vue | 2 +- .../src/layout/components/Settings/index.vue | 1 - ZR.Vue/src/layout/index.vue | 44 ++++++++++--------- ZR.Vue/src/settings.js | 4 ++ ZR.Vue/src/store/modules/settings.js | 6 +-- ZR.Vue/src/views/login.vue | 10 +++-- ZR.Vue/src/views/system/menu/index.vue | 25 +++++++++-- 9 files changed, 61 insertions(+), 34 deletions(-) diff --git a/ZR.Vue/package.json b/ZR.Vue/package.json index fce507a..87b4cd3 100644 --- a/ZR.Vue/package.json +++ b/ZR.Vue/package.json @@ -58,7 +58,7 @@ "babel-eslint": "10.1.0", "babel-jest": "23.6.0", "babel-plugin-dynamic-import-node": "2.3.3", - "chalk": "2.4.2", + "chalk": "4.1.0", "chokidar": "2.1.5", "connect": "3.6.6", "eslint": "6.7.2", diff --git a/ZR.Vue/src/components/ThemePicker/index.vue b/ZR.Vue/src/components/ThemePicker/index.vue index bf13c28..d8f9d1e 100644 --- a/ZR.Vue/src/components/ThemePicker/index.vue +++ b/ZR.Vue/src/components/ThemePicker/index.vue @@ -42,6 +42,7 @@ export default { methods: { async setTheme(val) { + console.log('%c setTheme Color','color:' + val) const oldVal = this.chalk ? this.theme : ORIGINAL_THEME if (typeof val !== 'string') return const themeCluster = this.getThemeCluster(val.replace('#', '')) diff --git a/ZR.Vue/src/components/TopNav/index.vue b/ZR.Vue/src/components/TopNav/index.vue index 8cc019e..32358ef 100644 --- a/ZR.Vue/src/components/TopNav/index.vue +++ b/ZR.Vue/src/components/TopNav/index.vue @@ -8,7 +8,7 @@ - +