mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🚸 添加Hint
This commit is contained in:
@@ -232,6 +232,7 @@ async function freshPostData(): Promise<void> {
|
|||||||
posts.value = postsGet.list;
|
posts.value = postsGet.list;
|
||||||
lastId.value = postsGet.last_id;
|
lastId.value = postsGet.last_id;
|
||||||
isLast.value = postsGet.is_last;
|
isLast.value = postsGet.is_last;
|
||||||
|
showSnackbar.success(`刷新成功,共加载 ${postsGet.list.length} 条帖子`);
|
||||||
await showLoading.end();
|
await showLoading.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,6 +112,9 @@ async function firstLoad(key: NewsType, refresh: boolean = false): Promise<void>
|
|||||||
triggerRef(rawData);
|
triggerRef(rawData);
|
||||||
await showLoading.end();
|
await showLoading.end();
|
||||||
await TGLogger.Info(`[News][${gid}][firstLoad] 获取${rawData.value[key].name}数据成功`);
|
await TGLogger.Info(`[News][${gid}][firstLoad] 获取${rawData.value[key].name}数据成功`);
|
||||||
|
showSnackbar.success(
|
||||||
|
`获取${gameName}${rawData.value[key].name}数据成功,共 ${getData.list.length} 条`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function switchAnno(): Promise<void> {
|
async function switchAnno(): Promise<void> {
|
||||||
@@ -148,6 +151,7 @@ async function loadMore(key: NewsType): Promise<void> {
|
|||||||
}
|
}
|
||||||
await showLoading.end();
|
await showLoading.end();
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
showSnackbar.success(`加载成功,共加载 ${getData.list.length} 条`);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function searchPost(): Promise<void> {
|
async function searchPost(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user