|
|
@@ -50,7 +50,15 @@ export const useAuthStore = defineStore('auth', {
|
|
|
raw_data: JSON.parse(res.rawData),
|
|
|
signature: res.signature,
|
|
|
})
|
|
|
- this.loginResultHandle(loginResult);
|
|
|
+ console.log(loginResult);
|
|
|
+ if (loginResult.inheritor) {
|
|
|
+ this.loginType = LOGIN_TYPE_COLLECT;
|
|
|
+ } else if (loginResult.aub) {
|
|
|
+ this.loginType = LOGIN_TYPE_COLLECT_ADMIN;
|
|
|
+ } else {
|
|
|
+ this.loginType = LOGIN_TYPE_USER;
|
|
|
+ }
|
|
|
+ this.loginResultHandle(loginResult, this.loginType);
|
|
|
},
|
|
|
async loginMobile(mobile: string, password: string) {
|
|
|
const loginResult = await UserApi.loginWithMobile({
|