提交 b387681c 作者: 无木

fix(api): select api type error

上级 2c5351f9
...@@ -8,4 +8,4 @@ export interface DemoOptionsItem { ...@@ -8,4 +8,4 @@ export interface DemoOptionsItem {
/** /**
* @description: Request list return value * @description: Request list return value
*/ */
export type DemoOptionsGetResultModel = BasicFetchResult<DemoOptionsItem[]>; export type DemoOptionsGetResultModel = BasicFetchResult<DemoOptionsItem>;
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
import { DemoOptionsGetResultModel } from './model/optionsModel'; import { DemoOptionsItem } from './model/optionsModel';
enum Api { enum Api {
OPTIONS_LIST = '/select/getDemoOptions', OPTIONS_LIST = '/select/getDemoOptions',
} }
...@@ -8,5 +7,4 @@ enum Api { ...@@ -8,5 +7,4 @@ enum Api {
/** /**
* @description: Get sample options value * @description: Get sample options value
*/ */
export const optionsListApi = () => export const optionsListApi = () => defHttp.get<DemoOptionsItem[]>({ url: Api.OPTIONS_LIST });
defHttp.get<DemoOptionsGetResultModel>({ url: Api.OPTIONS_LIST });
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论