mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
remove duplicate judgment (#1432)
Co-authored-by: zhangchao3 <zhangchao3@corp.netease.com>
This commit is contained in:
parent
2a667c9e7f
commit
16cd2438dd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user