Explorar el Código

[FIX] catch error if fail modules fetching

Gogs hace 7 años
padre
commit
3d4a0ecc8d
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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)
         })
     }
 }