This commit is contained in:
@jyuhsin
2025-09-06 17:41:30 +08:00
parent 61bf409560
commit a112f0d1ae
@@ -12,6 +12,12 @@ if (typeof Vue !== 'undefined') {
formRefs.forEach(refName => {
const form = this.$refs[refName];
const attrs = form.$attrs;
if (attrs && attrs['no-auto-enhance'] !== undefined) {
return; // 有 no-auto-enhance 属性,跳过增强
}
if (!form || form._validatedEnhanced) return;
const originalValidate = form.validate;