浏览代码

[FIX] catch error if fail modules fetching

Gogs 7 年之前
父节点
当前提交
3d4a0ecc8d
共有 1 个文件被更改,包括 3 次插入1 次删除
  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)
         })
     }
 }