feat: 登录携带 appId,配合多端会话分组
This commit is contained in:
+2
-1
@@ -14,7 +14,8 @@ export const userApi = {
|
||||
signin: (mobile: string, passwd: string) =>
|
||||
request<{ user: UserView }>('/user/signin', {
|
||||
method: 'POST',
|
||||
body: { mobile, passwd },
|
||||
// appId 仅用于多端会话分组:管理端登录不再覆盖小程序端的 token
|
||||
body: { mobile, passwd, appId: 'web-escort-admin' },
|
||||
silent: true,
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user