Browse Source

已解决类型检查报错问题

yourname 6 months ago
parent
commit
10d7c1e840
2 changed files with 3 additions and 1 deletions
  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 {