Browse Source

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

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
79e2c386df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui-next/src/views/login/index.tsx
  2. 2
      dolphinscheduler-ui-next/src/views/project/list/index.module.scss

6
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 }
},

2
dolphinscheduler-ui-next/src/views/project/list/index.module.scss

@ -43,7 +43,7 @@
}
.links {
color: #2080f0;
color: dodgerblue;
text-decoration: none;
cursor: pointer;

Loading…
Cancel
Save