登录页面初步

This commit is contained in:
禺狨
2023-03-02 17:52:54 +08:00
parent 04c3fb3851
commit 0dad3f206e
4 changed files with 9 additions and 19 deletions

View File

@@ -10,6 +10,9 @@ export class HttpClient {
baseURL: url,
timeout: 15000,
withCredentials: false,
headers:{
"Accept":"application/json"
}
});
//拦截器注册

View File

@@ -17,3 +17,7 @@ export function login(
export function logout() {
return client.post("/backend/v1/auth/logout", {});
}
export function getUser() {
return client.get("/backend/v1/auth/detail", {});
}

View File

@@ -4,7 +4,3 @@ export function getImageCaptcha() {
return client.get("/backend/v1/system/image-captcha", {});
}
export function getUser() {
return client.get("/backend/v1/auth/detail", {});
}