后台登录页面调通

This commit is contained in:
aoshiguchen
2022-08-27 14:34:58 +08:00
parent cfb6f589da
commit 6c4deb15aa
13 changed files with 153 additions and 43 deletions
+5 -5
View File
@@ -1,12 +1,12 @@
import request from '@/utils/request'
export function loginByUsername(username, password) {
export function loginByUsername(loginName, loginPassword) {
const data = {
username,
password
loginName,
loginPassword
}
return request({
url: '/login/login',
url: '/login',
method: 'post',
data
})
@@ -14,7 +14,7 @@ export function loginByUsername(username, password) {
export function logout() {
return request({
url: '/login/logout',
url: '/logout',
method: 'post'
})
}
+8
View File
@@ -31,9 +31,17 @@ export function updateUser(data) {
})
}
export function currentUserInfo() {
return request({
url: '/user/info',
method: 'get'
})
}
export function hello() {
return request({
url: '/test1/hello',
method: 'GET'
})
}