From 2d69967f511a84b0abfa743a7c037ea2a6f4eb65 Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Thu, 14 Sep 2023 13:31:20 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/evaluate/myEvaluate.vue | 3 ++- pages/product/goods.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/order/evaluate/myEvaluate.vue b/pages/order/evaluate/myEvaluate.vue index db83649..dbe110b 100644 --- a/pages/order/evaluate/myEvaluate.vue +++ b/pages/order/evaluate/myEvaluate.vue @@ -115,7 +115,8 @@ export default { onShow() { this.orderList = []; this.params.pageNumber = 1; - this.current == 0 ? this.loadData() : this.loadComments(); + this.current = 0 + this.loadData() }, watch: { /** diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 2f7c84b..bca6f38 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -554,7 +554,7 @@ export default { this.productId = id; // skuId // 这里请求获取到页面数据 解析数据 - let response = await getGoods(id, goodsId); + let response = await getGoods(id || 'undefined', goodsId); // 判断当前接口返回内容 if (!response.data.success) {