fix: stopTask func need use async/await syntax

This commit is contained in:
wangtunan committed 2025-03-07 00:07:04 +08:00
1 parent 533c99e384
commit 7d1a094f9b
1 file changed
+1 -1
+1 -1
View File
@@ -1686,7 +1686,7 @@
const stopResponse = async () => {
if (taskId) {
const res = await stopTask(localStorage.token, taskId).catch((error) => {
toast.error(error);
toast.error(`${error}`);
return null;
});