build(projects): update tsconfig、eslintrc

This commit is contained in:
Soybean
2022-03-12 16:21:40 +08:00
parent 4093dcd6dc
commit 75de2b0604
131 changed files with 1174 additions and 1140 deletions

View File

@@ -42,13 +42,13 @@ const model = reactive({
phone: '',
code: '',
pwd: '',
confirmPwd: ''
confirmPwd: '',
});
const rules: FormRules = {
phone: formRules.phone,
code: formRules.code,
pwd: formRules.pwd,
confirmPwd: getConfirmPwdRule(toRefs(model).pwd)
confirmPwd: getConfirmPwdRule(toRefs(model).pwd),
};
const agreement = ref(false);
@@ -61,7 +61,7 @@ function handleSubmit(e: MouseEvent) {
if (!formRef.value) return;
e.preventDefault();
formRef.value.validate(errors => {
formRef.value.validate((errors) => {
if (!errors) {
if (!agreement.value) return;
window.$message?.success('验证成功');