mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-10 23:13:20 +08:00
fix: bug
- 增加防抖,解决输入打断
This commit is contained in:
@@ -160,12 +160,14 @@ watch(
|
|||||||
)
|
)
|
||||||
|
|
||||||
// 搜索监听
|
// 搜索监听
|
||||||
watch([() => search.value, () => isComposing.value], async () => {
|
watch([() => search.value, () => isComposing.value],
|
||||||
if (!isComposing.value) {
|
debounce(async () => {
|
||||||
console.log('search: ' + search.value)
|
if (!isComposing.value) {
|
||||||
reloadPage(true)
|
console.log('search: ' + search.value)
|
||||||
}
|
reloadPage(true)
|
||||||
})
|
}
|
||||||
|
}, 1000),
|
||||||
|
)
|
||||||
|
|
||||||
// 获取订阅列表数据
|
// 获取订阅列表数据
|
||||||
async function fetchData(page = currentPage.value, count = itemsPerPage.value) {
|
async function fetchData(page = currentPage.value, count = itemsPerPage.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user