fix:控制台报错处理

This commit is contained in:
zhangyu
2022-03-10 13:34:24 +08:00
parent 4e48a1f6b2
commit ff48f86654
5 changed files with 15 additions and 0 deletions

View File

@@ -163,6 +163,9 @@ export default {
params[this.trendKey] = item.id
setTimeout(() => {
this.$get('/stat/alertMessage/trend', params).then((res) => {
if (!res.data) {
return
}
const alertDaysData = res.data.result ? res.data.result[0].values : []
const newWeekDays = JSON.parse(JSON.stringify(weekDays))
alertDaysData.forEach(item => {