diff --git a/dinky-web/src/pages/Other/Login/index.tsx b/dinky-web/src/pages/Other/Login/index.tsx index b09f5c416d1..4f5b3c67526 100644 --- a/dinky-web/src/pages/Other/Login/index.tsx +++ b/dinky-web/src/pages/Other/Login/index.tsx @@ -25,7 +25,7 @@ import { chooseTenantSubmit, login, queryDataByParams } from '@/services/Busines import { API } from '@/services/data'; import { API_CONSTANTS } from '@/services/endpoints'; import { UserBaseInfo } from '@/types/AuthCenter/data'; -import { setLocalThemeToStorage, setTenantStorageAndCookie} from '@/utils/function'; +import { setLocalThemeToStorage, setTenantStorageAndCookie } from '@/utils/function'; import { useLocalStorage } from '@/utils/hook/useLocalStorage'; import { l } from '@/utils/intl'; import { ErrorMessage, SuccessMessageAsync } from '@/utils/messages'; @@ -84,7 +84,6 @@ const Login: React.FC = () => { const handleChooseTenant = async (chooseTenantResult: API.Result) => { if (chooseTenantResult.code === 0) { - await SuccessMessageAsync( l('login.chooseTenantSuccess', '', { msg: chooseTenantResult.msg, diff --git a/dinky-web/src/utils/function.tsx b/dinky-web/src/utils/function.tsx index df1d900f55c..c1235e84fa5 100644 --- a/dinky-web/src/utils/function.tsx +++ b/dinky-web/src/utils/function.tsx @@ -126,7 +126,7 @@ export function getLocalTheme(): string { } export function setLocalThemeToStorage(defaultTheme?: string) { - localStorage.setItem(THEME.NAV_THEME,defaultTheme ?? getLocalTheme()) ; + localStorage.setItem(THEME.NAV_THEME, defaultTheme ?? getLocalTheme()); } /**