wangcz 7 лет назад
Родитель
Сommit
cc9fb9fc72
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      store/product/kind.js

+ 1 - 2
store/product/kind.js

@@ -49,8 +49,7 @@ export const mutations = {
   GET_KIND_SUCCESS (state, action) {
     if (!action.id) {
       state.kinds.fetching = false
-      let list = action.result || []
-      list.forEach(kind => {
+      action.result.forEach(kind => {
         kind.fetching = false
       })
       state.kinds.data = action.result