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:
parent
2ad674b0b0
commit
01249a4f5a
@ -10,11 +10,7 @@ interface SelectOption {
|
||||
}
|
||||
|
||||
/** 接口响应格式 */
|
||||
interface ApiData {
|
||||
code: number
|
||||
data: SelectOption[]
|
||||
message: string
|
||||
}
|
||||
type ApiData = ApiResponseData<SelectOption[]>
|
||||
|
||||
/** 入参格式,暂时只需要传递 api 函数即可 */
|
||||
interface FetchSelectProps {
|
||||
|
Loading…
x
Reference in New Issue
Block a user