Commit a35cdd77 by huaying

fix: dd

parent 7a68cfd6
......@@ -108,6 +108,7 @@ export default {
this.tableData = res.result.result;
this.total = res.result.totalCount;
} catch (err) {
this.loading = false;
this.$tips({ type: 'error', message: '加载列表失败' });
}
this.loading = false;
......
......@@ -90,6 +90,7 @@ export default {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
} else {
this.loading = false;
this.$tips({ type: 'error', message: '加载列表失败' });
}
this.loading = false;
......
......@@ -63,6 +63,7 @@ export default {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
} else {
this.loading = false;
this.$tips({ type: 'error', message: '加载列表失败' });
}
this.loading = false;
......
......@@ -52,15 +52,21 @@ export default {
...this.params,
storeId: this.$route.query.id
};
await getCardDetailPage(this.params).then(res => {
if (res.errorCode == 0) {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
} else {
await getCardDetailPage(this.params)
.then(res => {
if (res.errorCode == 0) {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
} else {
this.loading = false;
this.$tips({ type: 'error', message: res.message });
}
this.loading = false;
})
.catch(err => {
this.$tips({ type: 'error', message: '加载列表失败' });
}
this.loading = false;
});
this.loading = false;
});
}
}
};
......
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