Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 03:19:19 +08:00

refactor: update "hooks/useFetchSelect" type

This commit is contained in:
pany 2024-02-25 12:52:55 +08:00
parent 2ad674b0b0
commit 01249a4f5a

View File

@ -10,11 +10,7 @@ interface SelectOption {
}
/** 接口响应格式 */
interface ApiData {
code: number
data: SelectOption[]
message: string
}
type ApiData = ApiResponseData<SelectOption[]>
/** 入参格式,暂时只需要传递 api 函数即可 */
interface FetchSelectProps {