Commit 372f8a8c authored by Qingyu Deng's avatar Qingyu Deng

feat: add error message

parent 18bf36d7
...@@ -564,7 +564,12 @@ export default { ...@@ -564,7 +564,12 @@ export default {
itemsToRefund = itemsToRefund.map(processRefundItem); itemsToRefund = itemsToRefund.map(processRefundItem);
const res = await refundOrder(orderId, itemsToRefund); const res = await refundOrder(orderId, itemsToRefund);
console.log(res); if (res.code === 0) {
this.$message.success("退款成功");
return;
}
this.$message.error(res.reason);
}, },
}, },
created() { created() {
......
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