feat: 更新用户注册和登录界面的文本提示,增强用户体验
This commit is contained in:
@@ -26,7 +26,7 @@ async function handleSubmit(values: Record<string, any>) {
|
||||
|
||||
if (!data?.token) {
|
||||
toastController.create({
|
||||
message: "注册失败,请重试",
|
||||
message: t("auth.signup.signupFailed"),
|
||||
duration: 2000,
|
||||
color: "danger",
|
||||
}).then(toast => toast.present());
|
||||
@@ -40,7 +40,7 @@ async function handleSubmit(values: Record<string, any>) {
|
||||
}
|
||||
catch (err) {
|
||||
toastController.create({
|
||||
message: "注册失败,请重试",
|
||||
message: t("auth.signup.signupFailed"),
|
||||
duration: 2000,
|
||||
color: "danger",
|
||||
}).then(toast => toast.present());
|
||||
|
||||
Reference in New Issue
Block a user