fix:修复管理员登录页不能响应暗黑模式开关的问题

This commit is contained in:
妙码生花 2023-07-31 11:27:02 +08:00
parent e6b75b5b50
commit a8b8cff868

View File

@ -85,10 +85,12 @@ import { uuid } from '/@/utils/random'
import { buildValidatorData } from '/@/utils/validate'
import router from '/@/router'
import clickCaptcha from '/@/components/clickCaptcha'
import toggleDark from '/@/utils/useDark'
let timer: number
const config = useConfig()
const adminInfo = useAdminInfo()
toggleDark(config.layout.isDark)
const formRef = ref<FormInstance>()
const usernameRef = ref<InputInstance>()