perf: 优化部分流程

master
Yer 2023-09-14 13:31:20 +08:00
parent 4aeaa115dc
commit 2d69967f51
2 changed files with 3 additions and 2 deletions

View File

@ -115,7 +115,8 @@ export default {
onShow() { onShow() {
this.orderList = []; this.orderList = [];
this.params.pageNumber = 1; this.params.pageNumber = 1;
this.current == 0 ? this.loadData() : this.loadComments(); this.current = 0
this.loadData()
}, },
watch: { watch: {
/** /**

View File

@ -554,7 +554,7 @@ export default {
this.productId = id; // skuId this.productId = id; // skuId
// //
let response = await getGoods(id, goodsId); let response = await getGoods(id || 'undefined', goodsId);
// //
if (!response.data.success) { if (!response.data.success) {