diff --git a/public/locales/en/auth.json b/public/locales/en/auth.json index 7c4f8965..a5d62b38 100644 --- a/public/locales/en/auth.json +++ b/public/locales/en/auth.json @@ -1,7 +1,6 @@ { "login": { "title": "Login to {{name}}", - "desc": "Please enter your details.", "google": "Sign in with Google", "github": "Sign in with GitHub", "metamask": "Sign in with MetaMask", @@ -11,7 +10,6 @@ }, "reg": { "title": "Sign Up to {{name}}", - "desc": "Please enter your details.", "google": "Sign Up with Google", "github": "Sign Up with GitHub", "metamask": "Sign Up with MetaMask", diff --git a/public/locales/zh/auth.json b/public/locales/zh/auth.json index 3ab16cc5..0208e469 100644 --- a/public/locales/zh/auth.json +++ b/public/locales/zh/auth.json @@ -1,7 +1,6 @@ { "login": { "title": "登录{{name}}", - "desc": "请输入用户名密码", "google": "谷歌登录", "github": "Github登录", "metamask": "MetaMask登录", @@ -11,7 +10,6 @@ }, "reg": { "title": "注册{{name}}", - "desc": "请输入邮箱和密码", "google": "谷歌注册", "github": "Github注册", "metamask": "MetaMask注册", diff --git a/src/app/services/auth.ts b/src/app/services/auth.ts index 5c75272e..2b2b2138 100644 --- a/src/app/services/auth.ts +++ b/src/app/services/auth.ts @@ -182,6 +182,8 @@ export const authApi = createApi({ try { await queryFulfilled; dispatch(resetAuthData()); + // 重定向到登录 + location.href = "/#/login"; } catch { console.log("logout error"); } diff --git a/src/routes/login/index.tsx b/src/routes/login/index.tsx index ea74628b..105265f4 100644 --- a/src/routes/login/index.tsx +++ b/src/routes/login/index.tsx @@ -134,10 +134,9 @@ export default function LoginPage() { alt="logo" className="w-14 h-14 mb-3 md:mb-7 rounded-full" /> -

+

{t("login.title", { name: serverName })}

- {t("login.desc")}
{hasDivider && } -
+
{enableMagicLink && } -
{whoCanSignUp === "EveryOne" && } diff --git a/src/routes/reg/Register.tsx b/src/routes/reg/Register.tsx index 1bbeee52..fdc30808 100644 --- a/src/routes/reg/Register.tsx +++ b/src/routes/reg/Register.tsx @@ -147,10 +147,9 @@ export default function Register() { alt="logo" className="w-14 h-14 md:mb-7 rounded-full" /> -

+

{t("reg.title", { name: serverName })}

- {t("reg.desc")}