fix: 商机跟单/要客拜访搜索框漏传params参数

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-13 00:59:53 +08:00
parent cdbe59e97f
commit 07c6f65378
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ async function loadItems() {
try {
const params: any = { page: page.value, page_size: pageSize.value }
if (searchText.value) params.search = searchText.value
const res = await keyVisitsApi.list()
const res = await keyVisitsApi.list(params)
const raw = Array.isArray(res.data) ? res.data : (res.data.items || [])
items.value = raw; total.value = res.data.total || raw.length
} catch (_) {}
+1 -1
View File
@@ -20,7 +20,7 @@ async function loadItems() {
try {
const params: any = { page: page.value, page_size: pageSize.value }
if (searchText.value) params.search = searchText.value
const res = await miniBusinessApi.list()
const res = await miniBusinessApi.list(params)
const raw = Array.isArray(res.data) ? res.data : (res.data.items || [])
items.value = raw; total.value = res.data.total || raw.length
} catch (_) {}