mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-18 16:35:53 +08:00
perf: 优化部分流程
This commit is contained in:
@@ -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: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user