update 优化 代码中存在的警告

This commit is contained in:
疯狂的狮子Li
2023-11-30 11:13:29 +08:00
parent 5c701801db
commit e1023bb331
6 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -105,12 +105,12 @@ const registerRules: ElFormRules = {
const codeUrl = ref("");
const loading = ref(false);
const captchaEnabled = ref(true);
const registerRef = ref(ElForm);
const registerRef = ref<ElFormInstance>();
// 租户列表
const tenantList = ref<TenantVO[]>([]);
const handleRegister = () => {
registerRef.value.validate(async (valid: boolean) => {
registerRef.value?.validate(async (valid: boolean) => {
if (valid) {
loading.value = true;
const [err] = await to(register(registerForm.value));