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