fix: 修复detection一些问题

This commit is contained in:
chenjinsong
2022-03-04 15:46:30 +08:00
parent b640da089a
commit 5bbda24a17
3 changed files with 117 additions and 82 deletions

View File

@@ -89,7 +89,7 @@ export const api = {
},
performanceEvent: {
eventSeverityTrend: '/interface/detection/performance/filter/severityTrend',
securityType: '/interface/detection/performance/filter/eventType',
eventType: '/interface/detection/performance/filter/eventType',
eventSeverity: '/interface/detection/performance/filter/severity',
activeEntity: '/interface/detection/performance/filter/activeEntity',
listBasic: '/interface/detection/performance/list/basic',
@@ -139,11 +139,11 @@ export async function getData (url, params = {}, isQueryList) {
reject(response)
}
})
}catch(e) {
} catch (e) {
reject(e)
}
}).catch(response => {
console.error(response)
console.error(response)
})
return await request
}