feat: 登录接口和验证码登录

This commit is contained in:
TsMask
2023-09-06 15:25:42 +08:00
parent 90f55f4103
commit 259ef50c0c
2 changed files with 91 additions and 11 deletions

View File

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