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

chore: build

上级 e1f47add
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册