You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/01/12 10:41:14 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next] Fix dark theme logout. (#7965)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 79e2c38  [Fix][UI Next] Fix dark theme logout. (#7965)
79e2c38 is described below

commit 79e2c386dfbb726ffb7d152da76cc1a2e01debc1
Author: songjianet <17...@qq.com>
AuthorDate: Wed Jan 12 18:39:33 2022 +0800

    [Fix][UI Next] Fix dark theme logout. (#7965)
---
 dolphinscheduler-ui-next/src/views/login/index.tsx                | 6 ++++++
 dolphinscheduler-ui-next/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 c19a73f..0ebea90 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 4ab32d6..b518e96 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;