mirror of
https://github.com/dataease/dataease.git
synced 2026-05-23 13:58:26 +08:00
feat: 修改包名
This commit is contained in:
25
frontend/src/api/user.js
Normal file
25
frontend/src/api/user.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* 前后端不分离的登录方式 */
|
||||
import {get, post, put} from "@/plugins/request"
|
||||
|
||||
export function login(data) {
|
||||
return post("/samples/user/login", data)
|
||||
}
|
||||
|
||||
export function logout() {
|
||||
return post("/samples/user/logout")
|
||||
}
|
||||
|
||||
export function isLogin() {
|
||||
return get("/samples/user/is-login")
|
||||
}
|
||||
|
||||
export function getCurrentUser() {
|
||||
return get("/samples/user/current")
|
||||
}
|
||||
|
||||
export function updateInfo(id, data) {
|
||||
return put("/samples/user/info/update/" + id, data)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user