数智员工免密登录

This commit is contained in:
wong
2025-10-29 10:30:50 +08:00
parent 18a7055a4e
commit 175c78c3d0
6 changed files with 572 additions and 313 deletions

View File

@@ -3,14 +3,18 @@ import { request, requestWithRetry } from '../config'
// 认证相关API
export const authApi = {
// 用户登录
login: (account, password) => {
// @param {string} account - 账号
// @param {string} password - 密码
// @param {string} deviceId - 设备ID仅APP端传递H5端为空字符串
login: (account, password, deviceId) => {
return request({
url: '/v1/auth/login',
method: 'POST',
data: {
account: account,
password: password,
typeId: 2 // 固定为2
typeId: 2, // 固定为2
deviceId: deviceId || '' // 设备ID仅APP端有值
}
})
}