ERROR formEl.validate is not a function TypeError: formEl.validate is not a function at Proxy.submitForm (webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/views/basic/component.vue?
const formRef = ref<FormInstance>(); const submitForm = (formEl: FormInstance | undefined) => { if (!formEl) return; console.log(formEl); formEl.validate((valid: boolean) => { if (valid) { window.localStorage.setItem("aaa", JSON.stringify(formModel)); } }); }; 输出的formEl是这样?