From 960643787bb2286d11dd8ae33e0706a7707c63b9 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 11 十一月 2025 15:34:48 +0800
Subject: [PATCH] fix: 权限
---
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