소스 검색

已解决类型检查报错问题

yourname 6 달 전
부모
커밋
10d7c1e840
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/admin/pages_users.tsx
  2. 2 0
      client/share/types.ts

+ 1 - 1
client/admin/pages_users.tsx

@@ -5,7 +5,7 @@ import {
 } from 'antd';
 import { useQuery } from '@tanstack/react-query';
 import dayjs from 'dayjs';
-import * as UserAPI from './api/users.ts';
+import { UserAPI } from './api/users.ts';
 
 const { Title } = Typography;
 

+ 2 - 0
client/share/types.ts

@@ -34,6 +34,8 @@ export interface User {
   avatar?: string;
   password?: string;
   permissions?: string[];
+  created_at?: string;
+  expires_at?: string;
 }
 
 export interface MenuItem {