wangcz 7 سال پیش
والد
کامیت
9d9f60df4a
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      store/product/kind.js

+ 2 - 1
store/product/kind.js

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