fix: ensure to request the interface correctly

This commit is contained in:
Vben
2021-02-26 23:30:22 +08:00
parent a821d9a3a2
commit 11d3f395ca
8 changed files with 11 additions and 19 deletions

View File

@@ -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 });