Commit 1f685cea by liuchenxi

bugfix: 修改冻结会员查询不存在报错

parent 8cbd7932
......@@ -378,6 +378,7 @@ export default {
}
},
getList(options) {
console.log(options);
const datas = {
pageSize: options.pSize,
currentPage: options.cPage,
......@@ -388,8 +389,9 @@ export default {
"name,nickName,photoUrl,cardNo,crateCardDateString,wxMember,posMember"
};
doFetch("/api-member/ajax-members-do-frozen", datas).then(res => {
console.log(res.data);
if (res.data.errorCode === 0) {
if (res.data.result.result.length > 0) {
if (res.data.result.result && res.data.result.result.length > 0) {
this.frozenList = res.data.result.result.map(ele => ({
...ele,
cardNum: ele.cardNum ? ele.cardNum : "--",
......
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