提交 f5c65f1f 编写于 作者: fxy060608's avatar fxy060608

fix(mp): invalidate update job (#3340)

上级 3ffeae6d
......@@ -1413,12 +1413,6 @@ function queueFlush() {
currentFlushPromise = resolvedPromise.then(flushJobs);
}
}
function invalidateJob(job) {
const i = queue.indexOf(job);
if (i > flushIndex) {
queue.splice(i, 1);
}
}
function queueCb(cb, activeQueue, pendingQueue, index) {
if (!isArray(cb)) {
if (!activeQueue ||
......@@ -4430,6 +4424,12 @@ function unwrapper(target) {
}
function defineAsyncComponent(source) {
console.error('defineAsyncComponent is unsupported');
}
function invalidateJob(job) {
const i = queue.indexOf(job);
if (i > -1) {
queue.splice(i, 1);
}
}
// import deepCopy from './deepCopy'
......
......@@ -1413,12 +1413,6 @@ function queueFlush() {
currentFlushPromise = resolvedPromise.then(flushJobs);
}
}
function invalidateJob(job) {
const i = queue.indexOf(job);
if (i > flushIndex) {
queue.splice(i, 1);
}
}
function queueCb(cb, activeQueue, pendingQueue, index) {
if (!isArray(cb)) {
if (!activeQueue ||
......@@ -4430,6 +4424,12 @@ function unwrapper(target) {
}
function defineAsyncComponent(source) {
console.error('defineAsyncComponent is unsupported');
}
function invalidateJob(job) {
const i = queue.indexOf(job);
if (i > -1) {
queue.splice(i, 1);
}
}
// import deepCopy from './deepCopy'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册