Browse Source

修改bug.

zhangfufeng 4 months ago
parent
commit
eccc9f492c
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/views/login/index.vue

+ 2 - 6
src/views/login/index.vue

@@ -56,7 +56,7 @@
   </div>
 </template>
 
-<script> 
+<script>
 import {getToken, hasLogin} from '@/utils/auth'
 export default {
   name: "Login",
@@ -141,11 +141,7 @@ export default {
                 else this.$router.push({ path: "/dashboard" });
               // else this.$router.push({ path: this.redirect || "/" });
             })
-            .catch((error) => {
-              this.$message({
-                message: error,
-                type: "error"
-              });
+            .catch(() => {
               this.loading = false;
               this.getCaptcha();
             });