fix: correct typos

This commit is contained in:
fwindpeak
2022-05-28 10:10:10 +08:00
committed by GitHub
parent 4157c7bccc
commit 636201df80
9 changed files with 16 additions and 16 deletions

View File

@@ -21,9 +21,9 @@ const onLogin = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
await formEl.validate((valid, fields) => {
if (valid) {
// 模拟登请求,需根据实际开发进行修改
// 模拟登请求,需根据实际开发进行修改
setTimeout(() => {
message.success("登成功");
message.success("登成功");
loading.value = false;
}, 2000);
} else {
@@ -83,7 +83,7 @@ function onBack() {
:loading="loading"
@click="onLogin(ruleFormRef)"
>
</el-button>
</el-form-item>
</Motion>

View File

@@ -49,7 +49,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
accessToken: "eyJhbGciOiJIUzUxMiJ9.test"
});
initRouter("admin").then(() => {});
message.success("登成功");
message.success("登成功");
router.push("/");
}, 2000);
} else {
@@ -179,7 +179,7 @@ watch(imgCode, value => {
<span
v-for="(item, index) in thirdParty"
:key="index"
:title="`${item.title}登`"
:title="`${item.title}登`"
>
<IconifyIconOnline
:icon="`ri:${item.icon}-fill`"
@@ -190,9 +190,9 @@ watch(imgCode, value => {
</div>
</el-form-item>
</Motion>
<!-- 手机号登 -->
<!-- 手机号登 -->
<phone v-if="currentPage === 1" />
<!-- 二维码登 -->
<!-- 二维码登 -->
<qrCode v-if="currentPage === 2" />
<!-- 注册 -->
<regist v-if="currentPage === 3" />

View File

@@ -10,7 +10,7 @@ export const REGEXP_SIX = /^\d{6}$/;
export const REGEXP_PWD =
/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[()])+$)(?!^.*[\u4E00-\u9FA5].*$)([^(0-9a-zA-Z)]|[()]|[a-z]|[A-Z]|[0-9]){8,18}$/;
/** 登校验 */
/** 登校验 */
const loginRules = reactive(<FormRules>{
username: [{ required: true, message: "请输入账号", trigger: "blur" }],
password: [
@@ -45,7 +45,7 @@ const loginRules = reactive(<FormRules>{
]
});
/** 手机登校验 */
/** 手机登校验 */
const phoneRules = reactive(<FormRules>{
phone: [
{