Browse Source

[FIX] catch error if fail modules fetching

Gogs 7 years ago
parent
commit
3d4a0ecc8d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/store/actions.js

+ 3 - 1
src/store/actions.js

@@ -8,7 +8,9 @@ const actions = {
         ]
 
         Promise.all(promises).then(() => {
-            console.log('ok')
+            console.log('loaded')
+        }).catch(error => {
+            console.log(error)
         })
     }
 }