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

+ 1 - 1
store/product/kind.js

@@ -47,7 +47,7 @@ export const mutations = {
     }
   },
   GET_KIND_SUCCESS (state, action) {
-    if (action.id === undefined) {
+    if (!action.id) {
       state.kinds.fetching = false
       action.result.forEach(kind => {
         kind.fetching = false