Commit 7876cd2f by xinla

--no commit message

1 parent a5717a0d
...@@ -20,9 +20,10 @@ export function getCustomerList(params, isTrans) { ...@@ -20,9 +20,10 @@ export function getCustomerList(params, isTrans) {
url: base + '/customer/findAllWeCustomerList', url: base + '/customer/findAllWeCustomerList',
method: 'get', method: 'get',
params, params,
}).then(({ data }) => { }).then((res) => {
if (isTrans) { if (isTrans) {
let map = {} let map = {}
let data = res.data
let _data = [] let _data = []
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
let ai = data[i] let ai = data[i]
...@@ -44,7 +45,7 @@ export function getCustomerList(params, isTrans) { ...@@ -44,7 +45,7 @@ export function getCustomerList(params, isTrans) {
} }
return { data: _data } return { data: _data }
} else { } else {
return { data } return res
} }
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!