🐞 fix(ID1000986):【客户管理】新建客户没有校验上面红色带星星的字段信息,点击确定后没有二次校验
This commit is contained in:
parent
2b77f5813f
commit
1b55902ca0
@ -215,11 +215,17 @@ const CustomerEditor = () => {
|
||||
}
|
||||
}, [])
|
||||
const isDisabled = useMemo(() => {
|
||||
let count = 0
|
||||
for (const i in formData) {
|
||||
count++
|
||||
}
|
||||
console.log(formData, '5555')
|
||||
console.log(count, '6666')
|
||||
let empty: any = null
|
||||
if (typeof (formData) == 'undefined') { return }
|
||||
for (const key in formData) {
|
||||
if (key in formData) {
|
||||
if (formData[key] !== '' && typeof (formData[key]) !== 'undefined') {
|
||||
if (formData[key] !== '' && typeof (formData[key]) !== 'undefined' && count === 10) {
|
||||
empty = false
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user