vue-pro/yudao-ui-admin-vue3/src/utils/formRules.ts

10 lines
163 B
TypeScript
Raw Normal View History

2022-07-18 19:06:37 +08:00
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
// 必填项
export const required = {
required: true,
message: t('common.required')
}