fix(canvas): 创作任务 - 页面切换保留后台执行并支持及时停止 (#136)

This commit is contained in:
ahyang authored and GitHub committed 2026-08-05 09:15:26 +08:00
1 parent 96f68289c7
commit 8c31af51d5
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ export default function CreatePage() {
});
return () => {
cancelled = true;
abortRef.current?.abort();
// 页面卸载只停止当前页面的状态更新,后台任务由任务中心继续执行,返回页面后再恢复状态。
};
}, []);