chore: integrate @tanstack/eslint-plugin-query and fix service layer lint errors (#30444)

This commit is contained in:
yyh
2026-01-04 11:20:06 +08:00
committed by GitHub
parent 815ae6c754
commit 822374eca5
11 changed files with 44 additions and 25 deletions

View File

@ -73,7 +73,7 @@ export const useUpdateAccessMode = () => {
export const useGetUserCanAccessApp = ({ appId, isInstalledApp = true, enabled }: { appId?: string, isInstalledApp?: boolean, enabled?: boolean }) => {
const systemFeatures = useGlobalPublicStore(s => s.systemFeatures)
return useQuery({
queryKey: [NAME_SPACE, 'user-can-access-app', appId],
queryKey: [NAME_SPACE, 'user-can-access-app', appId, systemFeatures.webapp_auth.enabled, isInstalledApp],
queryFn: () => {
if (systemFeatures.webapp_auth.enabled)
return getUserCanAccess(appId!, isInstalledApp)