zhengyiming
7 天以前 3a6cec3cc9068778953f21516660bc4403bc7ceb
src/hooks/useAccess.ts
@@ -6,7 +6,6 @@
  useGroupOperationBtns as useBoleGroupOperationBtns,
} from '@bole-core/components';
import type { Ref, ComputedRef } from 'vue';
import * as baseModuleServices from '@/services/api/BaseModule';
import { myClient } from '@/constants/query';
type UseAccessOptions = {
@@ -32,7 +31,12 @@
  return useBoleAccess({
    queryKey: ['baseModuleServices/getCurrentSubModuleList', { moduleId }],
    service: async () => {
      return await baseModuleServices.getCurrentSubModuleList({ moduleId }, { showLoading: false });
      // return await baseModuleServices.getCurrentSubModuleList({ moduleId }, { showLoading: false });
      return await Promise.resolve({
        pageButton: [],
        dataButton: [],
        column: [],
      });
    },
    ...options,
  });