From f0cc3c0020338156083d561b65df1c49fd5d1a3c Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 21 Jun 2022 16:23:29 +0800 Subject: [PATCH] chore: build --- packages/uni-mp-vue/dist/vue.runtime.esm.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/uni-mp-vue/dist/vue.runtime.esm.js b/packages/uni-mp-vue/dist/vue.runtime.esm.js index 1c706554e..44786ad69 100644 --- a/packages/uni-mp-vue/dist/vue.runtime.esm.js +++ b/packages/uni-mp-vue/dist/vue.runtime.esm.js @@ -4821,18 +4821,12 @@ function setRef$1(instance, isUnmount = false) { return false; }); }; - const retry = (refs, count = 3, timeout = 20) => { - setTimeout(() => { - refs = doSetByRefs(refs); - if (refs.length && count > 1) { - retry(refs, count - 1); - } - }, timeout); - }; const doSet = () => { const refs = doSetByRefs($templateRefs); - if (refs.length) { - retry(refs); + if (refs.length && instance.proxy && instance.proxy.$scope) { + instance.proxy.$scope.setData({ r1: 1 }, () => { + doSetByRefs(refs); + }); } }; if ($scope._$setRef) { -- GitLab