shish hai 9 horas
pai
achega
5ba1a09d3d
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      hdApp/src/admin/ghsProduct/detail.vue

+ 3 - 2
hdApp/src/admin/ghsProduct/detail.vue

@@ -307,6 +307,7 @@ export default {
           that.$msg('二维码有问题')
         }
 			}else{
+        // 店铺内进入常同时带 ghsId + shopId,必须互斥,否则 productDetail 会请求两次
         if(this.option.ghsId){
           this.isShare = false
           getGhsDataApi({id: this.option.ghsId}).then(res => {
@@ -316,8 +317,8 @@ export default {
               that.productDetail(this.option.id,shopId)
             }
           })
-        }
-        if(this.option.shopId){
+        } else if(this.option.shopId){
+          // 群分享等仅有 shopId:换当前客户 ghsId 后再拉详情
           ghsInfo({shopId: this.option.shopId}).then(res => {
             let ghsId = res.data.id;
             this.ghsInfo = res.data