Commit f9cc724b authored by 王苓芝's avatar 王苓芝

data为空时报错

parent 8af00511
...@@ -22,7 +22,7 @@ export async function searchList(params, auditStatus) { ...@@ -22,7 +22,7 @@ export async function searchList(params, auditStatus) {
// 'Content-Type': 'application/x-www-form-urlencoded', // 'Content-Type': 'application/x-www-form-urlencoded',
// }, // },
}); });
if (data.data) { if (data && data.data) {
return { return {
total: data.data.total, total: data.data.total,
data: data.data.records, data: data.data.records,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment