From f7a99184725f7ea0884cf478f169aad4e5b6583c Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sun, 13 Jul 2025 18:27:57 +0800
Subject: [PATCH] 1

---
 src/page/login/login.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/page/login/login.vue b/src/page/login/login.vue
index 8d3c048..7a36fea 100644
--- a/src/page/login/login.vue
+++ b/src/page/login/login.vue
@@ -10,7 +10,6 @@
           <el-input
             :placeholder="$t('hj9')"
             :size="medium"
-            maxlength="11"
             v-model="userName"
             clearable
           >
@@ -62,7 +61,7 @@
 import headers from "./components/header.vue";
 import * as api from "@/axios/api";
 import { Notify } from "vant";
-import { mapMutations } from "vuex";
+import { mapActions, mapMutations } from "vuex";
 
 export default {
   name: "newLogin",
@@ -92,6 +91,7 @@
   },
 
   methods: {
+    ...mapActions(["setUseInfo"]),
     ...mapMutations(["undataToken"]),
     checkboxChange(e) {
       window.localStorage.setItem("login_checked", e);
@@ -116,6 +116,7 @@
       let data = await api.login(opts);
 
       if (data.status === 0) {
+        this.setUseInfo();
         if (this.checked) {
           window.localStorage.setItem(
             "login_admin",
@@ -134,7 +135,8 @@
         Notify({ type: "success", message: this.$t("hj36") });
 
         setTimeout(() => {
-          this.$router.push("/home");
+          // this.$router.push("/home");
+          this.$router.push("/home_index");
         }, 1000);
       } else {
         Notify({ type: "warning", message: data.msg });
@@ -169,8 +171,11 @@
   font-weight: 400;
   font-size: 0.37333rem;
   color: #8c9fad;
-  margin: 0 auto;
+  margin: 0.4rem auto;
   padding: 0.34667rem 0.4rem;
+  width: 100%;
+  height: 6rem;
+  text-align: center;
   span {
     color: rgb(5, 106, 239);
   }

--
Gitblit v1.9.3