From eb1bbfb7e6f3a1895b606d1a9a261928ac841f33 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期三, 18 六月 2025 17:06:43 +0800
Subject: [PATCH] feat: 添加设备台账页面

---
 src/store/modules/user.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index ba555bc..5623661 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -50,6 +50,7 @@
             this.id = user.userId
             this.name = user.userName
             this.avatar = avatar
+            this.currentFactoryName = user.currentFactoryName
             this.nickName = user.nickName
             resolve(res)
           }).catch(error => {
@@ -87,7 +88,7 @@
       loginCheckFactory(userInfo) {
         const username = userInfo.username.trim()
         const password = userInfo.password
-        const factoryId = userInfo.factoryId
+        const factoryId = userInfo.currentFatoryId
         return new Promise((resolve, reject) => {
           loginCheckFactory(username, password, factoryId).then(res => {
             setToken(res.token)

--
Gitblit v1.9.3