remove duplicate judgment (#1432)

Co-authored-by: zhangchao3 <zhangchao3@corp.netease.com>
This commit is contained in:
arika163 2021-12-01 22:01:50 +08:00 committed by GitHub
parent 2a667c9e7f
commit 16cd2438dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,9 +24,7 @@ const loadingDirective: Directive = {
if (!instance) return;
instance.setTip(el.getAttribute('loading-tip'));
if (binding.oldValue !== binding.value) {
if (binding.oldValue !== binding.value) {
instance.setLoading?.(binding.value && !instance.loading);
}
instance.setLoading?.(binding.value && !instance.loading);
}
},
unmounted(el) {