fix(aihr): scope mobile home metrics by identity

This commit is contained in:
2026-07-14 10:23:56 +08:00
parent b2d95dcff7
commit 2cae83ff1b
9 changed files with 254 additions and 19 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
import type { RoleHome, RoleKey } from '@/types/api';
import { apiRequest } from './api';
import { isLoggedIn } from './auth';
export const getMobileHome = (role: RoleKey) =>
apiRequest<RoleHome>({
url: `/api/aihr/mobile/home/${role}`,
method: 'GET',
auth: false,
auth: isLoggedIn(),
timeout: 15000
});