From c9cfcbda7fb7c8b62b27d623feb0418790396740 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 18 九月 2026 11:09:07 +0800
Subject: [PATCH] 天津融邦环保app 1.部署修改
---
src/store/modules/user.ts | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 0813795..7a8afc6 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -33,7 +33,7 @@
return new Promise((resolve, reject) => {
loginCheckFactory(userName, password, factoryId)
.then((res: any) => {
- const token = res.token || res.data?.token;
+ const token = res.token || (res.data && res.data.token);
if (token) {
setToken(token);
this.token = token;
--
Gitblit v1.9.3