diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue
index 3b83a88d..eafa8405 100644
--- a/src/layout/components/Settings/index.vue
+++ b/src/layout/components/Settings/index.vue
@@ -1,6 +1,8 @@
@@ -38,6 +46,7 @@ const switchSettings = {
{{ settingName }}
+ 重 置
@@ -56,5 +65,9 @@ const switchSettings = {
@include ellipsis;
}
}
+ .el-button {
+ margin-top: 40px;
+ width: 100%;
+ }
}
diff --git a/src/utils/cache/local-storage.ts b/src/utils/cache/local-storage.ts
index 6b105873..2f4cade6 100644
--- a/src/utils/cache/local-storage.ts
+++ b/src/utils/cache/local-storage.ts
@@ -14,6 +14,9 @@ export const getConfigLayout = () => {
export const setConfigLayout = (settings: LayoutSettings) => {
localStorage.setItem(CacheKey.CONFIG_LAYOUT, JSON.stringify(settings))
}
+export const removeConfigLayout = () => {
+ localStorage.removeItem(CacheKey.CONFIG_LAYOUT)
+}
//#endregion
//#region 侧边栏状态