Commit 2ad658db authored by Allen Bai's avatar Allen Bai

feat: abort的时机修改

parent 61790964
......@@ -151,12 +151,11 @@ async function mountIPCFooter(opts: IPCFooterOptions = {}) {
return
}
// 当taskId和currentTaskId不相等时,说明有新的挂载任务进行中,当前任务就abort掉
if (taskId !== currentTaskId) {
return
}
setTimeout(() => {
// 当taskId和currentTaskId不相等时,说明有新的挂载任务进行中,当前任务就abort掉
if (taskId !== currentTaskId) {
return
}
targetDom.appendChild(IPCFooter)
currentTaskId = null
}, opts.delay || 300)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment