未验证 提交 79e2c386 编写于 作者: S songjianet 提交者: GitHub

[Fix][UI Next] Fix dark theme logout. (#7965)

上级 455cede2
......@@ -22,6 +22,7 @@ import { useForm } from './use-form'
import { useTranslate } from './use-translate'
import { useLogin } from './use-login'
import { useLocalesStore } from '@/store/locales/locales'
import { useThemeStore } from "@/store/theme/theme";
const login = defineComponent({
name: 'login',
......@@ -30,6 +31,11 @@ const login = defineComponent({
const { handleChange } = useTranslate(locale)
const { handleLogin } = useLogin(state)
const localesStore = useLocalesStore()
const themeStore = useThemeStore()
if (themeStore.getTheme) {
themeStore.setDarkTheme()
}
return { t, handleChange, handleLogin, ...toRefs(state), localesStore }
},
......
......@@ -43,7 +43,7 @@
}
.links {
color: #2080f0;
color: dodgerblue;
text-decoration: none;
cursor: pointer;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册