♻️ loading组件重构

This commit is contained in:
目棃
2024-12-16 11:13:30 +08:00
parent 1f167845a4
commit 24e3f11c4a
33 changed files with 482 additions and 428 deletions

View File

@@ -73,7 +73,7 @@ watch(
() => visible.value,
async (value) => {
if (value) {
await new Promise((resolve) => setTimeout(resolve, 500));
await new Promise<void>((resolve) => setTimeout(resolve, 500));
if (postListEl.value === null || props.collection.total < 5) return;
let topNum: number;
if (props.collection.total - props.collection.cur < 3) topNum = props.collection.total;