Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 19:09:21 +08:00

refactor: 移除 utils/index.ts 文件

This commit is contained in:
pany 2024-11-12 13:24:41 +08:00
parent 6af1ba94ff
commit 396b8fac53
2 changed files with 7 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import { watchEffect } from "vue"
import { storeToRefs } from "pinia"
import { useSettingsStore } from "@/store/modules/settings"
import { useLayoutMode } from "@/hooks/useLayoutMode"
import { resetConfigLayout } from "@/utils"
import { removeConfigLayout } from "@/utils/cache/local-storage"
import SelectLayoutMode from "./SelectLayoutMode.vue"
import { Refresh } from "@element-plus/icons-vue"
@ -46,6 +46,12 @@ const switchSettings = {
watchEffect(() => {
!isLeft.value && (fixedHeader.value = true)
})
/** 重置项目配置 */
const resetConfigLayout = () => {
removeConfigLayout()
location.reload()
}
</script>
<template>

View File

@ -1,7 +0,0 @@
import { removeConfigLayout } from "@/utils/cache/local-storage"
/** 重置项目配置 */
export const resetConfigLayout = () => {
removeConfigLayout()
location.reload()
}