This commit is contained in:
qsh
2026-01-30 11:21:02 +08:00
parent 35f5621d7e
commit 36482fb428
7 changed files with 710 additions and 342 deletions

View File

@@ -1,21 +1,19 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 登录方法
export function login(username, password, code, uuid) {
export function login(username, password) {
const data = {
username,
password,
code,
uuid
}
password
};
return request({
'url': '/login',
url: '/system/auth/login',
headers: {
isToken: false
},
'method': 'post',
'data': data
})
method: 'post',
data: data
});
}
// 注册方法
@@ -27,33 +25,33 @@ export function register(data) {
},
method: 'post',
data: data
})
});
}
// 获取用户详细信息
export function getInfo() {
return request({
'url': '/getInfo',
'method': 'get'
})
url: '/system/auth/get-permission-info',
method: 'get'
});
}
// 退出方法
export function logout() {
return request({
'url': '/logout',
'method': 'post'
})
url: '/logout',
method: 'post'
});
}
// 获取验证码
export function getCodeImg() {
return request({
'url': '/captchaImage',
url: '/captchaImage',
headers: {
isToken: false
},
method: 'get',
timeout: 20000
})
});
}