fix: tree-select cannot open issue, #5220
parent
ad06a9ee05
commit
31c3a6f693
|
@ -1,4 +1,4 @@
|
|||
import { onBeforeUpdate } from 'vue';
|
||||
import { onBeforeUnmount } from 'vue';
|
||||
|
||||
/**
|
||||
* Locker return cached mark.
|
||||
|
@ -10,7 +10,7 @@ export default function useLock(duration = 250): [() => boolean | null, (lock: b
|
|||
let lock: boolean | null = null;
|
||||
let timeout: any;
|
||||
|
||||
onBeforeUpdate(() => {
|
||||
onBeforeUnmount(() => {
|
||||
clearTimeout(timeout);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue