fix(查询组件): 查询组件报错
This commit is contained in:
parent
3367db784e
commit
d72dc33e66
@ -266,12 +266,12 @@ const showTypeError = computed(() => {
|
|||||||
ele => checkId === ele.id
|
ele => checkId === ele.id
|
||||||
)
|
)
|
||||||
if (!field) return false
|
if (!field) return false
|
||||||
if (displayTypeField === null && Array.isArray(field.type)) {
|
if (displayTypeField === null) {
|
||||||
displayTypeField = field
|
displayTypeField = field
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
||||||
if (!Array.isArray(field.type)) {
|
if (!Array.isArray(field.type) || !Array.isArray(displayTypeField.type)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (!displayTypeField.type?.length && !field.type?.length) {
|
if (!displayTypeField.type?.length && !field.type?.length) {
|
||||||
@ -1246,12 +1246,12 @@ const validate = () => {
|
|||||||
itx => checkId === itx.id
|
itx => checkId === itx.id
|
||||||
)
|
)
|
||||||
if (!field) return false
|
if (!field) return false
|
||||||
if (displayTypeField === null && Array.isArray(field.type)) {
|
if (displayTypeField === null) {
|
||||||
displayTypeField = field
|
displayTypeField = field
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
||||||
if (!Array.isArray(field.type)) {
|
if (!Array.isArray(field.type) || !Array.isArray(displayTypeField.type)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (!displayTypeField.type?.length && !field.type?.length) {
|
if (!displayTypeField.type?.length && !field.type?.length) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user