Merge pull request #279 from Aqr-K/fix/search

This commit is contained in:
jxxghp
2024-12-29 07:54:40 +08:00
committed by GitHub
+4 -2
View File
@@ -160,12 +160,14 @@ watch(
) )
// 搜索监听 // 搜索监听
watch([() => search.value, () => isComposing.value], async () => { watch([() => search.value, () => isComposing.value],
debounce(async () => {
if (!isComposing.value) { if (!isComposing.value) {
console.log('search: ' + search.value) console.log('search: ' + search.value)
reloadPage(true) reloadPage(true)
} }
}) }, 1000),
)
// 获取订阅列表数据 // 获取订阅列表数据
async function fetchData(page = currentPage.value, count = itemsPerPage.value) { async function fetchData(page = currentPage.value, count = itemsPerPage.value) {