From 54a0e457b4d5dc9f097968465178aef40d1360f6 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Wed, 3 Nov 2021 23:55:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=94=E9=99=A4vxe=E5=BC=BA=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/setting/index.vue | 69 +++++++++++++++---------- src/plugins/element-plus/index.ts | 6 ++- 2 files changed, 46 insertions(+), 29 deletions(-) diff --git a/src/layout/components/setting/index.vue b/src/layout/components/setting/index.vue index 5ec25068b..6f8a684cd 100644 --- a/src/layout/components/setting/index.vue +++ b/src/layout/components/setting/index.vue @@ -140,7 +140,7 @@ function onReset() { router.push("/login"); } -function onChange({ label }) { +function onChange(label) { storageLocal.setItem("showModel", label); emitter.emit("tagViewsShowModel", label); } @@ -258,60 +258,73 @@ function setLayoutThemeColor(theme: string) { - + > + + 清空缓存并返回登录页 diff --git a/src/plugins/element-plus/index.ts b/src/plugins/element-plus/index.ts index e8daa7b17..29aac0ca5 100644 --- a/src/plugins/element-plus/index.ts +++ b/src/plugins/element-plus/index.ts @@ -30,11 +30,13 @@ import { ElDrawer, ElPagination, ElAlert, + ElRadio, ElRadioButton, ElRadioGroup, ElDescriptions, ElDescriptionsItem, - ElBacktop + ElBacktop, + ElSwitch } from "element-plus"; // https://element-plus.org/zh-CN/component/icon.html @@ -85,11 +87,13 @@ const components = [ ElDrawer, ElPagination, ElAlert, + ElRadio, ElRadioButton, ElRadioGroup, ElDescriptions, ElDescriptionsItem, ElBacktop, + ElSwitch, // icon Check,