Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

🐛pro-table无法渲染数据,请问各位大神? #301

Closed
zhuguangyue opened this issue Apr 3, 2020 · 1 comment
Closed

🐛pro-table无法渲染数据,请问各位大神? #301

zhuguangyue opened this issue Apr 3, 2020 · 1 comment

Comments

@zhuguangyue
Copy link

🐛 pro-table无法渲染数据,请问各位大神?

已经把响应数据重新封装成pro-table固定的数据格式,还是无法渲染数据?
// 刷新用户列表(分页) export async function fetchUserPage(query) { const response = request('/api/upms/user/page', { method: 'GET', body: query, }); return { data:response.data.list, total: response.data.totalRow, pageSize: response.data.pageSize, current:response.data.pageNumber, }; }
数据:
image

重新封装:
image
image

image

@chenshuai2144
Copy link
Contributor

你需要 await 一下,你不能操作一个 Promise

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants