소스 검색

[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)
         })
     }
 }