diff --git a/src/App.vue b/src/App.vue
index b1b5840..b267d5b 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,6 +1,7 @@
diff --git a/src/layouts/components/Settings/index.vue b/src/layouts/components/Settings/index.vue
index b8e16eb..6b89e2a 100644
--- a/src/layouts/components/Settings/index.vue
+++ b/src/layouts/components/Settings/index.vue
@@ -2,7 +2,7 @@
import { watchEffect } from "vue"
import { storeToRefs } from "pinia"
import { useSettingsStore } from "@/store/modules/settings"
-import { removeConfigLayout } from "@/utils/cache/local-storage"
+import { resetConfigLayout } from "@/utils"
import { Refresh } from "@element-plus/icons-vue"
const settingsStore = useSettingsStore()
@@ -38,12 +38,6 @@ const switchSettings = {
watchEffect(() => {
layoutMode.value !== "left" && (fixedHeader.value = true)
})
-
-/** 重置配置 */
-const reset = () => {
- removeConfigLayout()
- location.reload()
-}
@@ -59,7 +53,7 @@ const reset = () => {
{{ settingName }}
- 重 置
+ 重 置
diff --git a/src/utils/index.ts b/src/utils/index.ts
index d3c8565..290c7e4 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -1,4 +1,5 @@
import dayjs from "dayjs"
+import { removeConfigLayout } from "@/utils/cache/local-storage"
/** 格式化时间 */
export const formatDateTime = (time: string | number | Date) => {
@@ -25,3 +26,9 @@ export const setCssVariableValue = (cssVariableName: string, cssVariableValue: s
console.error(error)
}
}
+
+/** 重置项目配置 */
+export const resetConfigLayout = () => {
+ removeConfigLayout()
+ location.reload()
+}