From 89469f566f4ad8602def16aef6744d205a3d20a8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 29 十二月 2025 14:32:54 +0800
Subject: [PATCH] 昭德app需求修改

---
 src/store/modules/user.ts |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 7b9c873..009366d 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -1,11 +1,11 @@
-import {logout, getInfo, loginCheckFactory} from "@/api/login";
+import {logout, getInfo, login} from "@/api/login";
 import { getToken, setToken, removeToken } from "@/utils/auth";
 import defAva from "@/static/images/profile.jpg";
 import { defineStore } from "pinia";
 import config from '@/config.js'
 
 export interface LoginForm {
-  username: string;
+  userName: string;
   password: string;
   factoryId: string;
 }
@@ -26,12 +26,12 @@
   }),
   actions: {
     // 閮ㄩ棬鐧诲綍
-    loginCheckFactory(userInfo: any) {
-      const username = userInfo.username.trim()
+    login(userInfo: any) {
+      const userName = userInfo.userName
       const password = userInfo.password
       const factoryId = userInfo.factoryId
       return new Promise((resolve, reject) => {
-        loginCheckFactory(username, password, factoryId).then((res: any) => {
+        login(userName, password, factoryId).then((res: any) => {
           setToken(res.token)
           this.token = res.token
           resolve(null)

--
Gitblit v1.9.3