feat(登录): 添加设备选择功能并实现登录接口集成
在登录弹窗中增加设备选择下拉框,并修改postAction以支持baseURL参数 实现用户登录接口调用,根据选择的设备进行登录请求
This commit is contained in:
@@ -4,6 +4,9 @@ import url, { getBaseUrl } from './url.js';
|
||||
// 健康检查
|
||||
export const getHealthAction = () => getAction(url.health);
|
||||
|
||||
// 用户登录
|
||||
export const loginAction = (data, sparkBaseUrl) => postAction(url.user.login, data, {}, sparkBaseUrl);
|
||||
|
||||
// 会话
|
||||
export const createSessionAction = (data) => postAction(url.session.create, data);
|
||||
export const getSessionAction = (id) => getAction(url.session.detail(id));
|
||||
|
||||
Reference in New Issue
Block a user