免密登录代码提交

This commit is contained in:
wong
2025-10-29 11:48:02 +08:00
parent 1862b11c0d
commit da8bcb04c9
5 changed files with 123 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
// API配置文件
// 基础配置
export const BASE_URL = 'http://yishi.com'
//export const BASE_URL = 'https://ckbapi.quwanzhi.com'
//export const BASE_URL = 'http://yishi.com'
export const BASE_URL = 'https://ckbapi.quwanzhi.com'
// 获取请求头
const getHeaders = (options = {}) => {

View File

@@ -17,5 +17,17 @@ export const authApi = {
deviceId: deviceId || '' // 设备ID仅APP端有值
}
})
},
// 免密登录
// @param {string} deviceId - 设备ID
noPasswordLogin: (deviceId) => {
return request({
url: '/v1/store/login',
method: 'GET',
data: {
deviceId: deviceId || ''
}
})
}
}