This commit is contained in:
zpc 2026-02-04 02:43:04 +08:00
parent 52d486ccac
commit 8a0143f1d5

View File

@ -277,13 +277,11 @@ async function loadData() {
const res = await getBoxProfitList(params) as any const res = await getBoxProfitList(params) as any
console.log('box-profit-list 响应:', res) console.log('box-profit-list 响应:', res)
console.log('res.data:', res.data) if (res.code === 0 && res.data) {
console.log('res.data 类型:', typeof res.data) // res.data { code, msg, count, data, summary }
console.log('res.data 是否数组:', Array.isArray(res.data)) const innerData = res.data
if (res.code === 0) { tableData.value = innerData.data || []
tableData.value = res.data pagination.total = innerData.count || 0
console.log('tableData 赋值后:', tableData.value)
pagination.total = res.count
} }
} catch (error) { } catch (error) {
console.error('加载数据失败:', error) console.error('加载数据失败:', error)