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