From b387681c00ac018f5bc6a9251009ddffe37acae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Thu, 10 Jun 2021 15:43:28 +0800 Subject: [PATCH] fix(api): select api type error --- src/api/demo/model/optionsModel.ts | 2 +- src/api/demo/select.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/api/demo/model/optionsModel.ts b/src/api/demo/model/optionsModel.ts index 0702aae4..c65dc7c9 100644 --- a/src/api/demo/model/optionsModel.ts +++ b/src/api/demo/model/optionsModel.ts @@ -8,4 +8,4 @@ export interface DemoOptionsItem { /** * @description: Request list return value */ -export type DemoOptionsGetResultModel = BasicFetchResult; +export type DemoOptionsGetResultModel = BasicFetchResult; diff --git a/src/api/demo/select.ts b/src/api/demo/select.ts index 30030aee..cb04bea2 100644 --- a/src/api/demo/select.ts +++ b/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 @@ enum Api { /** * @description: Get sample options value */ -export const optionsListApi = () => - defHttp.get({ url: Api.OPTIONS_LIST }); +export const optionsListApi = () => defHttp.get({ url: Api.OPTIONS_LIST });