mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 22:57:15 +08:00 
			
		
		
		
	release: v3.4.1
This commit is contained in:
		| @@ -57,6 +57,11 @@ export function useTable<T extends U, U = T>(api: Api<T>, options?: Options<T, U | ||||
|     pagination.onChange(1) | ||||
|   } | ||||
|  | ||||
|   // 刷新 | ||||
|   const refresh = () => { | ||||
|     getTableData() | ||||
|   } | ||||
|  | ||||
|   // 删除 | ||||
|   const handleDelete = async <T>( | ||||
|     deleteApi: () => Promise<ApiRes<T>>, | ||||
| @@ -89,5 +94,5 @@ export function useTable<T extends U, U = T>(api: Api<T>, options?: Options<T, U | ||||
|     }) | ||||
|   } | ||||
|  | ||||
|   return { loading, tableData, getTableData, search, pagination, selectedKeys, select, selectAll, handleDelete } | ||||
|   return { loading, tableData, getTableData, search, pagination, selectedKeys, select, selectAll, handleDelete, refresh } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user