From f5c65f1f34471de93583a5c716b2bff2332bce31 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 15 Mar 2022 13:56:30 +0800 Subject: [PATCH] fix(mp): invalidate update job (#3340) --- packages/uni-mp-vue/dist/vue.runtime.esm.js | 12 ++++++------ packages/uni-mp-vue/lib/vue.runtime.esm.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/uni-mp-vue/dist/vue.runtime.esm.js b/packages/uni-mp-vue/dist/vue.runtime.esm.js index 8fac8c22b..d3aaa8e20 100644 --- a/packages/uni-mp-vue/dist/vue.runtime.esm.js +++ b/packages/uni-mp-vue/dist/vue.runtime.esm.js @@ -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' diff --git a/packages/uni-mp-vue/lib/vue.runtime.esm.js b/packages/uni-mp-vue/lib/vue.runtime.esm.js index ce2349c24..d060ae618 100644 --- a/packages/uni-mp-vue/lib/vue.runtime.esm.js +++ b/packages/uni-mp-vue/lib/vue.runtime.esm.js @@ -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' -- GitLab