From f3d746181155c223bccdafcbbc45041e944e5eaa Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 21 十月 2025 20:20:24 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into dev-1.2.0.2
---
src/hooks/useAccess.ts | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/hooks/useAccess.ts b/src/hooks/useAccess.ts
index 7ae5280..fb68fca 100644
--- a/src/hooks/useAccess.ts
+++ b/src/hooks/useAccess.ts
@@ -8,7 +8,7 @@
} from '@bole-core/components';
import type { Ref, ComputedRef } from 'vue';
import { myClient } from '@/constants/query';
-import * as menuServices from '@/services/api/menu';
+import * as authServices from '@/services/api/auth';
type UseAccessOptions = {
operationBtnMap?: Record<string, OperationBtnType>;
@@ -33,7 +33,12 @@
return useBoleAccess({
queryKey: ['baseModuleServices/getCurrentSubModuleList', { moduleId }],
service: async () => {
- const res = await menuServices.getMenu({ id: moduleId });
+ const res = await authServices.getCurrentLogierMenu(
+ { id: moduleId },
+ {
+ showLoading: false,
+ }
+ );
return DaPengAccessAdapter.menuAdapter({ groups: res.groups, moduleId });
},
...options,
--
Gitblit v1.9.1