|
@@ -1,13 +1,13 @@
|
|
import { get, post } from '/@/utils/request';
|
|
import { get, post } from '/@/utils/request';
|
|
|
|
|
|
// 登录api接口
|
|
// 登录api接口
|
|
-export const login = (data: object) => post('/api/v1/login', data)
|
|
|
|
|
|
+export const login = (data: object) => post('/login', data)
|
|
|
|
|
|
// 获取登录用户信息
|
|
// 获取登录用户信息
|
|
export const currentUser = () => get('/system/user/currentUser')
|
|
export const currentUser = () => get('/system/user/currentUser')
|
|
|
|
|
|
// 获取验证码
|
|
// 获取验证码
|
|
-export const captcha = () => get('/api/v1/captcha')
|
|
|
|
|
|
+export const captcha = () => get('/captcha')
|
|
|
|
|
|
// 退出登录
|
|
// 退出登录
|
|
-export const signOut = (data: object) => post('/api/v1/user/signOut', data)
|
|
|
|
|
|
+export const signOut = (data: object) => post('/user/signOut', data)
|