调整登录组织校验和图形验证码交互
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { computed, ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
import {
|
||||
bindUserInfoAndGetUserMemberInfoByPhone,
|
||||
getBindStaffInfo,
|
||||
loginByMobile,
|
||||
type OrganizationMemberInfo
|
||||
} from '@/api/auth'
|
||||
@@ -66,7 +66,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
const payload = await loginByMobile(phone, code)
|
||||
persistToken(payload, phone)
|
||||
try {
|
||||
const member = await bindUserInfoAndGetUserMemberInfoByPhone(phone)
|
||||
const member = await getBindStaffInfo()
|
||||
if (!member?.organizationId || !member?.memberId) {
|
||||
throw new Error('未绑定组织,请联系管理员')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user