dashboard
repositories
filestore
activity
search
login
jagzwxm
/
ja_web
吉安感知网项目-前端
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
Merge branch 'master' of http://139.196.74.78:10010/r/jagzwxm/ja_web
shuishen
2026-01-08
5f7b4be87d2a9567f1c26567acf7feb95ec1407e
[jagzwxm/ja_web.git]
/
packages
/
utils
/
common
/
index.js
1
2
3
4
5
6
7
export function fieldRules(required, max) {
const trigger = ['blur', 'change']
return [
required ? { required: true, message: max ? '请输入' : '请选择', trigger } : {},
max ? { max, message: `长度不超过${max}`, trigger } : {},
]
}