mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
fix:delete chinese notes
This commit is contained in:
@@ -25,7 +25,7 @@ export const debounce = <T extends (...args: any) => any>(
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
return (...args: any) => {
|
return (...args: any) => {
|
||||||
if (defaultImmediate) {
|
if (defaultImmediate) {
|
||||||
fn.apply(this, args); // 确保引用函数的指向正确,并且函数的参数也不变
|
fn.apply(this, args);
|
||||||
defaultImmediate = false;
|
defaultImmediate = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user