Skip to content

Commit

Permalink
refactor: 移除 utils/index.ts 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Nov 12, 2024
1 parent 6af1ba9 commit 396b8fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 7 additions & 1 deletion src/layouts/components/Settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -46,6 +46,12 @@ const switchSettings = {
watchEffect(() => {
!isLeft.value && (fixedHeader.value = true)
})
/** 重置项目配置 */
const resetConfigLayout = () => {
removeConfigLayout()
location.reload()
}
</script>

<template>
Expand Down
7 changes: 0 additions & 7 deletions src/utils/index.ts

This file was deleted.

0 comments on commit 396b8fa

Please sign in to comment.