From 79e2c386dfbb726ffb7d152da76cc1a2e01debc1 Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Wed, 12 Jan 2022 18:39:33 +0800 Subject: [PATCH] [Fix][UI Next] Fix dark theme logout. (#7965) --- dolphinscheduler-ui-next/src/views/login/index.tsx | 6 ++++++ .../src/views/project/list/index.module.scss | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui-next/src/views/login/index.tsx b/dolphinscheduler-ui-next/src/views/login/index.tsx index c19a73fbf..0ebea90d0 100644 --- a/dolphinscheduler-ui-next/src/views/login/index.tsx +++ b/dolphinscheduler-ui-next/src/views/login/index.tsx @@ -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 } }, diff --git a/dolphinscheduler-ui-next/src/views/project/list/index.module.scss b/dolphinscheduler-ui-next/src/views/project/list/index.module.scss index 4ab32d696..b518e9615 100644 --- a/dolphinscheduler-ui-next/src/views/project/list/index.module.scss +++ b/dolphinscheduler-ui-next/src/views/project/list/index.module.scss @@ -43,7 +43,7 @@ } .links { - color: #2080f0; + color: dodgerblue; text-decoration: none; cursor: pointer; -- GitLab