Optimize code

This commit is contained in:
2023-11-16 09:19:45 +08:00
parent 4a16367f45
commit fedd2f6e8c
6 changed files with 26 additions and 26 deletions

View File

@@ -1,10 +1,10 @@
import request from '@/services'
import { URL_API_LOGIN, URL_API_LOGOUT } from '@/constants/urls.constants'
export const r_login = (username: string, password: string) =>
export const r_auth_login = (username: string, password: string) =>
request.post<TokenVo>(URL_API_LOGIN, {
username,
password
})
export const r_logout = () => request.post(URL_API_LOGOUT)
export const r_auth_logout = () => request.post(URL_API_LOGOUT)