From 4a2538cfe3daeea6e5aadc30e2dfc2ca354cc8a6 Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Tue, 25 Oct 2022 08:23:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global.d.ts | 3 + src/layouts/components/AppSetting/index.vue | 79 +++++++++++---------- src/store/modules/settings.ts | 13 ++-- 3 files changed, 50 insertions(+), 45 deletions(-) diff --git a/src/global.d.ts b/src/global.d.ts index 178b234d..e99fad98 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -4,6 +4,9 @@ import type { RouteRecordRaw, RouteMeta, NavigationGuard } from 'vue-router' type RecursiveRequired = { [P in keyof T]-?: RecursiveRequired } +type RecursivePartial = { + [P in keyof T]?: RecursivePartial +} declare namespace Settings { interface app { diff --git a/src/layouts/components/AppSetting/index.vue b/src/layouts/components/AppSetting/index.vue index 1c91078a..7e5ba0e9 100644 --- a/src/layouts/components/AppSetting/index.vue +++ b/src/layouts/components/AppSetting/index.vue @@ -1,10 +1,10 @@ @@ -48,9 +51,9 @@ function handleCopy() { 颜色主题
-
+
- +
@@ -59,7 +62,7 @@ function handleCopy() {