fix validator

This commit is contained in:
jxxghp
2023-06-28 08:38:26 +08:00
parent 30737d297d
commit 7401ef7941
3 changed files with 19 additions and 7 deletions

4
src/@validators/index.ts Normal file
View File

@@ -0,0 +1,4 @@
import { ValidationRule } from 'vuetify/types/services/validation'
// 必输校验
export const requiredValidator: ValidationRule = (value: any) => !!value || '此项为必填项'