fix: tree-select cannot open issue, #5220

pull/5280/head
tangjinzhou 2022-02-18 16:15:05 +08:00
parent ad06a9ee05
commit 31c3a6f693
1 changed files with 2 additions and 2 deletions

View File

@ -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);
});