From 3ae270ee2e6518522dce3153f483b8c5b3d3428d Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 28 十一月 2025 16:42:05 +0800
Subject: [PATCH] fix: bug

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

diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 271d314..9358c34 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -50,7 +50,7 @@
     },
 
     userId(state) {
-      return '';
+      return state.userDetail?.id;
     },
   },
   actions: {
@@ -77,6 +77,7 @@
           // password: md5Encrypt(params.password),
           type: AppLocalConfig.userType,
           clientType: AppLocalConfig.clientType,
+          enterpriseType: AppLocalConfig.enterpriseType,
         },
         {
           showLoading: false,

--
Gitblit v1.9.1