浏览代码

类目详情页接口屏蔽

yangc 7 年之前
父节点
当前提交
88c7479545
共有 1 个文件被更改,包括 19 次插入19 次删除
  1. 19 19
      store/product.js

+ 19 - 19
store/product.js

@@ -62,25 +62,25 @@ export const actions = {
     return axios.get(`/api/product/kind/${id}/parentsWithBothers`)
       .then(response => {
         commit('kind/GET_KINDPARENTSWITHBOTHERS_SUCCESS', response.data)
-        if (response.data) {
-          if (!response.data[response.data.length - 1].leaf) {
-            // commit('kind/REQUEST_CHILDREN')
-            // return axios.get(`/api/product/kind/${id}/children`)
-            //   .then(response => {
-            //     commit('kind/GET_CHILDREN_SUCCESS', response.data)
-            //   }, err => {
-            //     commit('kind/GET_CHILDREN_FAILURE', err)
-            //   })
-          } else {
-            commit('kind/REQUEST_KINDPROPERTY')
-            return axios.get(`/api/product/kind/${id}/properties/values`)
-              .then(response => {
-                commit('kind/GET_KINDPROPERTY_SUCCESS', response.data)
-              }, err => {
-                commit('kind/GET_KINDPROPERTY_FAILURE', err)
-              })
-          }
-        }
+        // if (response.data) {
+        //   if (!response.data[response.data.length - 1].leaf) {
+        //     // commit('kind/REQUEST_CHILDREN')
+        //     // return axios.get(`/api/product/kind/${id}/children`)
+        //     //   .then(response => {
+        //     //     commit('kind/GET_CHILDREN_SUCCESS', response.data)
+        //     //   }, err => {
+        //     //     commit('kind/GET_CHILDREN_FAILURE', err)
+        //     //   })
+        //   } else {
+        //     // commit('kind/REQUEST_KINDPROPERTY')
+        //     // return axios.get(`/api/product/kind/${id}/properties/values`)
+        //     //   .then(response => {
+        //     //     commit('kind/GET_KINDPROPERTY_SUCCESS', response.data)
+        //     //   }, err => {
+        //     //     commit('kind/GET_KINDPROPERTY_FAILURE', err)
+        //     //   })
+        //   }
+        // }
       }, err => {
         commit('kind/GET_KINDPARENTSWITHBOTHERS_FAILURE', err)
       })