Browse Source

处理BUG

wangcz 7 years ago
parent
commit
ba720c8a38
1 changed files with 1 additions and 1 deletions
  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