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:
parent
6af1ba94ff
commit
396b8fac53
@ -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>
|
||||
|
@ -1,7 +0,0 @@
|
||||
import { removeConfigLayout } from "@/utils/cache/local-storage"
|
||||
|
||||
/** 重置项目配置 */
|
||||
export const resetConfigLayout = () => {
|
||||
removeConfigLayout()
|
||||
location.reload()
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user