fix: stopTask func need use async/await syntax

This commit is contained in:
wangtunan 2025-03-07 00:07:04 +08:00
parent 533c99e384
commit 7d1a094f9b

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;
});