|
@@ -1,8 +1,6 @@
|
|
|
<script lang="ts" setup>
|
|
|
-import { isDark } from '@/utils/is'
|
|
|
import { useAppStore } from '@/store/modules/app'
|
|
|
import { useDesign } from '@/hooks/web/useDesign'
|
|
|
-import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
|
|
import routerSearch from '@/components/RouterSearch/index.vue'
|
|
|
import subscribe from '@/utils/Subscribe'
|
|
|
import LinkRouteMap from './LinkRouteMap'
|
|
@@ -14,17 +12,6 @@ const prefixCls = getPrefixCls('app')
|
|
|
const appStore = useAppStore()
|
|
|
const currentSize = computed(() => appStore.getCurrentSize)
|
|
|
const greyMode = computed(() => appStore.getGreyMode)
|
|
|
-const { wsCache } = useCache()
|
|
|
-
|
|
|
-// 根据浏览器当前主题设置系统主题色
|
|
|
-// const setDefaultTheme = () => {
|
|
|
-// let isDarkTheme = wsCache.get(CACHE_KEY.IS_DARK)
|
|
|
-// if (isDarkTheme === null) {
|
|
|
-// isDarkTheme = isDark()
|
|
|
-// }
|
|
|
-// appStore.setIsDark(isDarkTheme)
|
|
|
-// }
|
|
|
-// setDefaultTheme()
|
|
|
|
|
|
//订阅相应路由name
|
|
|
const router = useRouter()
|