feat: 1:优化token查询页 2:用户管理页面新增修改密码功能 3:调整景区与二维码关系

This commit is contained in:
2025-10-23 12:12:39 +08:00
parent e11fee3f53
commit 84db79fb22
8 changed files with 133 additions and 58 deletions
+6 -3
View File
@@ -10,9 +10,12 @@ export interface TokenItem {
}
export const tokenApi = {
page: async (params: { current?: number; pageSize?: number; tenantId: string; username?: string }) => {
if (!params?.tenantId) return { data: [], total: 0 };
const res = await request('/api-uaa/tokens', { method: 'GET', params: { page: params.current, limit: params.pageSize, ...params } });
page: async (params: { current?: number; pageSize?: number; tenantId?: string; username?: string }) => {
const p2 = { tenantId: 'webApp', ...params };
const res = await request('/api-uaa/tokens', {
method: 'GET',
params: { page: p2.current, limit: p2.pageSize, ...p2 },
});
const data = (res as any).data;
const total = (res as any).count ?? data?.length ?? 0;
return { data, total } as { data: TokenItem[]; total: number };