提交 44c0efa8 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 移动端登录账号长度限制错误

上级 dfff087d
......@@ -30,7 +30,8 @@
"passwordPlaceholder": "Please Input Password:",
"loginbtn": "Login",
"pwdFmtError": "Password Must More Than 6 Characters",
"uOrpwdError": "Invalid Account Or Password"
"uOrpwdError": "Invalid Account Or Password",
"accFmtError": "Account Must More Than 1 Characters"
},
"home": {
"tab1": "My Favorites",
......
......@@ -29,7 +29,8 @@
"password": "密码:",
"passwordPlaceholder": "请输入密码",
"loginbtn": "登录",
"pwdFmtError": "密码最短为6个字符",
"pwdFmtError": "密码最短为1个字符",
"accFmtError": "账号最短为1个字符",
"uOrpwdError": "无效账号或密码"
},
"home": {
......
......@@ -31,7 +31,8 @@
"passwordPlaceholder": "請輸入密碼",
"loginbtn": "登錄",
"pwdFmtError": "密碼最短為6個字符",
"uOrpwdError": "無效賬號或密碼"
"uOrpwdError": "無效賬號或密碼",
"accFmtError": "帳號最短為1個字符"
},
"home": {
"tab1": "我的收藏",
......
......@@ -67,17 +67,17 @@
async loginByPwd() {
if (this.username.length < 3) {
if (this.username.length < 1) {
uni.showToast({
icon: 'none',
title: '账号最短为 3 个字符'
title: this.$t('login.accFmtError')
});
return;
}
if (this.password.length < 6) {
if (this.password.length < 1) {
uni.showToast({
icon: 'none',
title: this.$t('login.pwdFmtError')
title: this.$t('login.passwordPlaceholder')
});
return;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论