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

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

View File

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