mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-01 06:39:45 +08:00
🐛 修复搜索bug
This commit is contained in:
@@ -40,6 +40,7 @@ interface ToPostSearchProps {
|
||||
|
||||
interface ToPostSearchEmits {
|
||||
(e: "update:modelValue", value: boolean): void;
|
||||
|
||||
(e: "cancel"): void;
|
||||
}
|
||||
|
||||
@@ -94,6 +95,7 @@ watch(
|
||||
results.value = [];
|
||||
lastId.value = "";
|
||||
isLast.value = false;
|
||||
await searchPosts();
|
||||
}
|
||||
},
|
||||
);
|
||||
@@ -143,6 +145,9 @@ async function searchPosts() {
|
||||
lastId.value = res.last_id;
|
||||
isLast.value = res.is_last;
|
||||
load.value = false;
|
||||
if (!visible.value) {
|
||||
visible.value = true;
|
||||
}
|
||||
}
|
||||
|
||||
function getGidLabel(): string {
|
||||
|
||||
Reference in New Issue
Block a user