mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
fix(Toast): lockCount might be minus
This commit is contained in:
@@ -7,7 +7,7 @@ export function lockClick(lock: boolean) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lockCount++;
|
lockCount++;
|
||||||
} else {
|
} else if (lockCount) {
|
||||||
lockCount--;
|
lockCount--;
|
||||||
|
|
||||||
if (!lockCount) {
|
if (!lockCount) {
|
||||||
|
Reference in New Issue
Block a user