Browse Source

产品详情页非标器件信息清除标准器件数据

yangc 7 years ago
parent
commit
0e322cded6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      store/shop.js

+ 2 - 0
store/shop.js

@@ -54,6 +54,8 @@ export const actions = {
               commit('storeInfo/GET_COMPONENT_FAILURE', err)
             })
         } else {
+          // 如果是非标,清除上一次请求带出的器件信息
+          commit('storeInfo/GET_COMPONENT_SUCCESS', {})
           return findStoreInfoFromUuid({ commit }, {uuid: commodity.storeid})
         }
       }, err => {