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

@@ -190,6 +190,7 @@ const { mutate: getAlarmList, isPending: isTableLoading } = useMutation({
tableData.value = records;
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});
@@ -225,6 +226,7 @@ const { mutate: downloadTableData, isPending: isDownloading } = useMutation({
downloadByData(data, `设备告警记录.xlsx`);
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});

View File

@@ -30,6 +30,10 @@ const { mutate: login, isPending: loading } = useMutation({
window.$message.success('登录成功');
router.push('/');
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});
</script>

View File

@@ -130,6 +130,7 @@ const { mutate: getVimpLogList, isPending: isTableLoading } = useMutation({
tableData.value = records;
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});
@@ -164,6 +165,7 @@ const { mutate: downloadTableData, isPending: isDownloading } = useMutation({
downloadByData(data, `设备告警记录.xlsx`);
},
onError: (error) => {
console.error(error);
window.$message.error(error.message);
},
});