Browse Source

fix: 增加异常捕获

ChenYangfan 6 years ago
parent
commit
9e5715af1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/App.vue

+ 1 - 1
src/App.vue

@@ -93,7 +93,7 @@ export default {
         } else {
           this.$router.push({ name: 'teacher-explore' })
         }
-      })
+      }).catch(err => this.$setErrorMessage(err.response.data.msg))
     }
   }
 }