fix(canvas): 创作任务 - 页面切换保留后台执行并支持及时停止 (#136)
This commit is contained in:
1 parent
96f68289c7
commit
8c31af51d5
2 files changed
+4
-4
No files matched your search
@@ -114,7 +114,7 @@ export default function CreatePage() {
|
||||
});
|
||||
return () => {
|
||||
cancelled = true;
|
||||
abortRef.current?.abort();
|
||||
// 页面卸载只停止当前页面的状态更新,后台任务由任务中心继续执行,返回页面后再恢复状态。
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user