无木
2021-06-10 b387681c00ac018f5bc6a9251009ddffe37acae6
fix(api): select api type error
2个文件已修改
8 ■■■■■ 已修改文件
src/api/demo/model/optionsModel.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/demo/select.ts 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/demo/model/optionsModel.ts
@@ -8,4 +8,4 @@
/**
 * @description: Request list return value
 */
export type DemoOptionsGetResultModel = BasicFetchResult<DemoOptionsItem[]>;
export type DemoOptionsGetResultModel = BasicFetchResult<DemoOptionsItem>;
src/api/demo/select.ts
@@ -1,6 +1,5 @@
import { defHttp } from '/@/utils/http/axios';
import { DemoOptionsGetResultModel } from './model/optionsModel';
import { DemoOptionsItem } from './model/optionsModel';
enum Api {
  OPTIONS_LIST = '/select/getDemoOptions',
}
@@ -8,5 +7,4 @@
/**
 * @description: Get sample options value
 */
export const optionsListApi = () =>
  defHttp.get<DemoOptionsGetResultModel>({ url: Api.OPTIONS_LIST });
export const optionsListApi = () => defHttp.get<DemoOptionsItem[]>({ url: Api.OPTIONS_LIST });