fix: 登录成功再进行退出,提示GET 不支持 #I6R4NQ

pull/4/MERGE
xingyu 2023-03-28 23:25:51 +08:00
parent 8ccc8bb22a
commit 4a7339236b
1 changed files with 2 additions and 21 deletions

View File

@ -6,9 +6,7 @@ import { ErrorMessageMode } from '@/types/axios'
enum Api {
Login = '/system/auth/login',
Logout = '/system/auth/logout',
GetUserInfo = '/system/auth/get-permission-info',
GetPermCode = '/getPermCode',
TestRetry = '/testRetry'
GetUserInfo = '/system/auth/get-permission-info'
}
/**
@ -33,23 +31,6 @@ export function getUserInfo() {
return defHttp.get<GetUserInfoModel>({ url: Api.GetUserInfo }, { errorMessageMode: 'none' })
}
export function getPermCode() {
return defHttp.get<string[]>({ url: Api.GetPermCode })
}
export function doLogout() {
return defHttp.get({ url: Api.Logout })
}
export function testRetry() {
return defHttp.get(
{ url: Api.TestRetry },
{
retryRequest: {
isOpenRetry: true,
count: 5,
waitTime: 1000
}
}
)
return defHttp.post({ url: Api.Logout })
}