From 11d3f395caf7e2268630090eb34f4e5c114a96b7 Mon Sep 17 00:00:00 2001 From: Vben <anncwb@126.com> Date: 星期五, 26 二月 2021 23:30:22 +0800 Subject: [PATCH] fix: ensure to request the interface correctly --- src/api/demo/account.ts | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/api/demo/account.ts b/src/api/demo/account.ts index a884fd0..54bed48 100644 --- a/src/api/demo/account.ts +++ b/src/api/demo/account.ts @@ -1,12 +1,10 @@ import { defHttp } from '/@/utils/http/axios'; import { GetAccountInfoModel } from './model/accountModel'; -const { get } = defHttp; - enum Api { ACCOUNT_INFO = '/account/getAccountInfo', } // Get personal center-basic settings -export const accountInfoApi = () => get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO }); +export const accountInfoApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO }); -- Gitblit v1.8.0