fix: 登录和路由获取接口

This commit is contained in:
TsMask
2023-09-05 17:10:47 +08:00
parent 9b443b0a2a
commit 0beb0c278e
2 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import { request } from '@/plugins/http-fetch';
// 登录方法
export function login(data: Record<string, string>) {
return request({
url: '/login',
url: '/securityManagement/v1/oauth/token',
method: 'post',
data: data,
whithToken: false,
@@ -30,7 +30,7 @@ export function register(data: Record<string, any>) {
*/
export function getInfo() {
return request({
url: '/getInfo',
url: '/securityManagement/v1/getUserInfo',
method: 'get',
});
}
@@ -41,8 +41,8 @@ export function getInfo() {
*/
export function logout() {
return request({
url: '/logout',
method: 'post',
url: '/securityManagement/v1/oauth/token',
method: 'delete',
});
}

View File

@@ -6,7 +6,7 @@ import { request } from '@/plugins/http-fetch';
*/
export const getRouters = () => {
return request({
url: '/getRouters',
url: '/securityManagement/v1/getRouters',
method: 'get',
});
};