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) {
-
灰色模式
-
+ >
+
-
色弱模式
-
+ >
+
-
隐藏标签页
-
+ >
+
-
侧边栏Logo
-
+ >
+
-
标签风格
-
-
-
-
+
+ 卡片
+ 灵动
+
-
+ >
+
+ 清空缓存并返回登录页
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,