|
|
@ -8,6 +8,14 @@ import { useUserStoreWithOut } from '/@/store/modules/user'
|
|
|
|
import { PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic'
|
|
|
|
import { PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic'
|
|
|
|
|
|
|
|
|
|
|
|
import { RootRoute } from '/@/router/routes'
|
|
|
|
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')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const LOGIN_PATH = PageEnum.BASE_LOGIN
|
|
|
|
const LOGIN_PATH = PageEnum.BASE_LOGIN
|
|
|
|
|
|
|
|
|
|
|
|