Ver código fonte

fix: 增加异常捕获

ChenYangfan 6 anos atrás
pai
commit
9e5715af1d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/App.vue

+ 1 - 1
src/App.vue

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