|
|
|
@ -4,7 +4,7 @@ import type { ErrorMessageMode } from '@/types/axios'
|
|
|
|
|
|
|
|
|
|
export function loginApi(params: LoginParams, mode: ErrorMessageMode = 'modal') { |
|
|
|
|
return defHttp.post<LoginResult>({ |
|
|
|
|
url: '/deframe-auth/oauth/token', |
|
|
|
|
url: '/baymax-auth/oauth/token', |
|
|
|
|
params: { |
|
|
|
|
username: params.username, |
|
|
|
|
password: params.password, |
|
|
|
@ -48,13 +48,13 @@ export interface __MenuItem {
|
|
|
|
|
|
|
|
|
|
export function getUserRouters() { |
|
|
|
|
return defHttp.get<__MenuItem[]>({ |
|
|
|
|
url: '/deframe-system/menu/routes', |
|
|
|
|
url: '/baymax-system/menu/routes', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function getUserButtons() { |
|
|
|
|
return defHttp.get({ |
|
|
|
|
url: '/deframe-system/menu/buttons', |
|
|
|
|
url: '/baymax-system/menu/buttons', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -66,7 +66,7 @@ export function doLogout() {
|
|
|
|
|
|
|
|
|
|
export function getLoginCaptcha() { |
|
|
|
|
return defHttp.get<{ image: string, key: string }>({ |
|
|
|
|
url: '/deframe-auth/oauth/captcha', |
|
|
|
|
url: '/baymax-auth/oauth/captcha', |
|
|
|
|
}, { |
|
|
|
|
isTransformResponse: false, |
|
|
|
|
withoutAuth: true, |
|
|
|
|