This commit is contained in:
2022-01-13 10:45:55 +08:00
parent 9673c1ba30
commit 7bc184c9c7
18 changed files with 548 additions and 424 deletions

View File

@@ -1,7 +1,7 @@
/*
* @Date: 2020-12-14 09:07:03
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-12-06 15:14:46
* @LastEditors: zwq
* @LastEditTime: 2022-01-11 15:45:54
* @FilePath: \basic-admin\src\api\user.js
* @Description: 用户管理 & 登录用户的相关api接口定义
*/
@@ -27,13 +27,13 @@ export function logout() {
})
}
// 获取当前登录的用户信息
// export function getUserInfo(data) {
// return request({
// url: '/passport/getLoginUser',
// method: 'post',
// data
// })
// }
export function getUserInfo(data) {
return request({
url: '/api/passport/getLoginUser',
method: 'post',
data
})
}
// 修改当前用户密码
export function editUserPW(data) {