From 515a265a809d0c12fb5cbff39cb743f391938a41 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期四, 30 十一月 2023 08:49:34 +0800
Subject: [PATCH] 新增

---
 src/views/components/loginForm.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/components/loginForm.vue b/src/views/components/loginForm.vue
index 08b6651..4336fce 100644
--- a/src/views/components/loginForm.vue
+++ b/src/views/components/loginForm.vue
@@ -24,6 +24,7 @@
           auto-complete="off"
           placeholder="密码"
           @keyup.enter="handleLogin"
+          show-password
         >
           <template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template>
         </el-input>
@@ -49,7 +50,7 @@
             :loading="loading"
             size="large"
             type="primary"
-            style="width:50%;"
+            style="width:63%;"
             @click.prevent="handleLogin"
         >
           <span v-if="!loading">登 录</span>
@@ -78,8 +79,8 @@
 const { proxy } = getCurrentInstance();
 
 const loginForm = ref({
-  username: "admin",
-  password: "admin@123",
+  username: "",
+  password: "",
   code: "",
   uuid: ""
 });
@@ -135,7 +136,11 @@
           }
           return acc;
         }, {});
-        router.push({ path: redirect.value || "/", query: otherQueryParams });
+        const routers = JSON.parse(Cookies.get('routers'))
+          router.push({
+              path: routers[0].path
+          })
+        // router.push({ path: redirect.value || "/", query: otherQueryParams });
       }).catch(() => {
         loading.value = false;
         // 重新获取验证码

--
Gitblit v1.9.2