fix: bug#31510

This commit is contained in:
leiqiaochu 2024-12-19 16:13:18 +08:00
parent 128652dcd5
commit 099db8c2dc
1 changed files with 4 additions and 2 deletions

View File

@ -220,8 +220,10 @@ const filterType = async (newVal: any) => {
terms: [ terms: [
{ termType: 'eq', column: 'objectTypeName', value: '设备' }, { termType: 'eq', column: 'objectTypeName', value: '设备' },
], ],
}); }).catch(()=>{
if (res.success && res.result.length !== 0) { _typeList[2].disabled = true
})
if (res.success && res.result.length === 0) {
// _typeList.push(TypeMap.relation) // _typeList.push(TypeMap.relation)
// TypeMap.relation.disabled = true; // TypeMap.relation.disabled = true;
_typeList[2].disabled = true _typeList[2].disabled = true