From a68d8260e9c4a1e8709a1f5ba69430ccb95f70da Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 21 一月 2026 10:59:48 +0800
Subject: [PATCH] 浪潮对接单点登录:能耗管理系统3

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

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 057af50..f17234c 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -99,9 +99,8 @@
       loginCheckFactory(userInfo) {
         const username = userInfo.username.trim()
         const password = userInfo.password
-        const factoryId = userInfo.currentFatoryId
         return new Promise((resolve, reject) => {
-          loginCheckFactory(username, password, factoryId).then(res => {
+          loginCheckFactory(username, password).then(res => {
             setToken(res.token)
             this.token = res.token
             resolve()
@@ -116,9 +115,6 @@
               .then((res) => {
                 setToken(res.token);
                 this.token = res.token
-                Vue.prototype.uploadHeader = {
-                  Authorization: "Bearer " + res.token,
-                };
                 resolve();
               })
               .catch((error) => {

--
Gitblit v1.9.3