fix: 修复项目配置清楚缓存无效

This commit is contained in:
kailong321200875 2023-12-15 11:03:41 +08:00
parent 1c5b16f529
commit a09ee60bb1
1 changed files with 2 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import { useStorage } from '@/hooks/web/useStorage'
import { useClipboard } from '@vueuse/core' import { useClipboard } from '@vueuse/core'
import { useDesign } from '@/hooks/web/useDesign' import { useDesign } from '@/hooks/web/useDesign'
const { removeStorage } = useStorage() const { clear: storageClear } = useStorage('localStorage')
const { getPrefixCls } = useDesign() const { getPrefixCls } = useDesign()
@ -188,9 +188,7 @@ const copyConfig = async () => {
// //
const clear = () => { const clear = () => {
removeStorage('layout') storageClear()
removeStorage('theme')
removeStorage('isDark')
window.location.reload() window.location.reload()
} }
</script> </script>