|
|
|
@ -9,9 +9,7 @@ import { PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic'
|
|
|
|
|
|
|
|
|
|
import { RootRoute } from '/@/router/routes'
|
|
|
|
|
import { useRootSetting } from '/@/hooks/setting/useRootSetting'
|
|
|
|
|
import { baseHandler } from '/@/layouts/default/setting/handler'
|
|
|
|
|
const { getDarkMode, setDarkMode } = useRootSetting()
|
|
|
|
|
console.log(getDarkMode)
|
|
|
|
|
// 设置默认主题
|
|
|
|
|
if (getDarkMode.value === 'light') {
|
|
|
|
|
setDarkMode('black')
|
|
|
|
|