From c3ad97910472086e01de3f910d82f1a32e1926e7 Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期三, 08 一月 2025 15:34:38 +0800
Subject: [PATCH] header

---
 src/view/Login.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/view/Login.vue b/src/view/Login.vue
index af945b2..dd91d8a 100644
--- a/src/view/Login.vue
+++ b/src/view/Login.vue
@@ -88,8 +88,11 @@
             }).then((result) => {
                 localStorage.setItem('extra', result.data.extra);
                 localStorage.setItem('userInfo', JSON.stringify(result.data));
-                this.$router.push({ path: '/index' });
-            })
+                this.$router.push({ path: '/home' });
+            }).catch(() => {
+                this.code = ''
+                this.codeStr = generateVerificationCode()
+            });
         }
     },
 };

--
Gitblit v1.7.1