fix: console.error

This commit is contained in:
yangsy
2025-09-15 11:12:38 +08:00
parent dacac54a20
commit a1251e6d1f
10 changed files with 24 additions and 4 deletions

View File

@@ -233,6 +233,7 @@ const { mutate: getStaionAlarmList, isPending: isTableLoading } = useMutation({
tableData.value = records;
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});
@@ -265,6 +266,7 @@ const { mutate: downloadTableData, isPending: isDownloading } = useMutation({
downloadByData(data, `${station.value?.name}-设备告警记录-${fmt}.xlsx`);
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});

View File

@@ -173,6 +173,7 @@ const { mutate: getDeviceParams } = useMutation({
});
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});
@@ -199,6 +200,7 @@ const { mutate: saveDeviceParams } = useMutation({
}
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});