zs 2 년 전
부모
커밋
32f3039e70
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pages/my/index.vue

+ 2 - 2
pages/my/index.vue

@@ -162,12 +162,12 @@
 							arr = await that.$api(`/user/${user._id}`, 'GET');
 							if (arr.errcode == '0') that.$set(that, `user`, arr.data);
 							// 查询收藏商品
-							arr = await that.$api(`/storeGoods`, 'GET', {
+							arr = await that.$api(`/storeGoods/userView`, 'GET', {
 								customer: user._id
 							})
 							if (arr.errcode == '0') that.$set(that, `market_num`, arr.total);
 							// 查询收藏店铺
-							arr = await that.$api(`/storeShop`, 'GET', {
+							arr = await that.$api(`/storeShop/userView`, 'GET', {
 								customer: user._id
 							})
 							if (arr.errcode == '0') that.$set(that, `shop_num`, arr.total);