bug fixed
This commit is contained in:
parent
46cf9cd253
commit
6b6ebc29d4
8
package-lock.json
generated
8
package-lock.json
generated
|
@ -2373,13 +2373,13 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@ucap/ng-store-authentication": {
|
"@ucap/ng-store-authentication": {
|
||||||
"version": "file:pack/ucap-ng-store-authentication-0.0.4.tgz",
|
"version": "file:pack/ucap-ng-store-authentication-0.0.5.tgz",
|
||||||
"integrity": "sha512-auUqI5uS1VblhrcPSaHragi6mZ2E6KCJE+SjW05QSe+pNg2afmuCheQNC8bTGkaU0iDbLjgEwmPuhBfLczihRg==",
|
"integrity": "sha512-ee4f9YqzCpmBu5YG9wnQXVtplkQwnG6IJaPHhwt8tXayW90PVq1Yxtn3SOOxNp/xCubTuSfJPo/kwcOF67bKug=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"@ucap/ng-store-chat": {
|
"@ucap/ng-store-chat": {
|
||||||
"version": "file:pack/ucap-ng-store-chat-0.0.4.tgz",
|
"version": "file:pack/ucap-ng-store-chat-0.0.4.tgz",
|
||||||
"integrity": "sha512-rSZirwFUMv9zXllqBWpdSUbUuRz9j1O8BVIfselp9sZHdKl7Xcx9irqNnHHkF2bJpxeWzugGrgG02tdt/xrIuQ=="
|
"integrity": "sha512-rSZirwFUMv9zXllqBWpdSUbUuRz9j1O8BVIfselp9sZHdKl7Xcx9irqNnHHkF2bJpxeWzugGrgG02tdt/xrIuQ==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"@ucap/ng-store-group": {
|
"@ucap/ng-store-group": {
|
||||||
"version": "file:pack/ucap-ng-store-group-0.0.5.tgz",
|
"version": "file:pack/ucap-ng-store-group-0.0.5.tgz",
|
||||||
|
|
|
@ -165,7 +165,7 @@
|
||||||
"@ucap/ng-protocol-status": "file:pack/ucap-ng-protocol-status-0.0.1.tgz",
|
"@ucap/ng-protocol-status": "file:pack/ucap-ng-protocol-status-0.0.1.tgz",
|
||||||
"@ucap/ng-protocol-sync": "file:pack/ucap-ng-protocol-sync-0.0.1.tgz",
|
"@ucap/ng-protocol-sync": "file:pack/ucap-ng-protocol-sync-0.0.1.tgz",
|
||||||
"@ucap/ng-protocol-umg": "file:pack/ucap-ng-protocol-umg-0.0.1.tgz",
|
"@ucap/ng-protocol-umg": "file:pack/ucap-ng-protocol-umg-0.0.1.tgz",
|
||||||
"@ucap/ng-store-authentication": "file:pack/ucap-ng-store-authentication-0.0.4.tgz",
|
"@ucap/ng-store-authentication": "file:pack/ucap-ng-store-authentication-0.0.5.tgz",
|
||||||
"@ucap/ng-store-chat": "file:pack/ucap-ng-store-chat-0.0.4.tgz",
|
"@ucap/ng-store-chat": "file:pack/ucap-ng-store-chat-0.0.4.tgz",
|
||||||
"@ucap/ng-store-group": "file:pack/ucap-ng-store-group-0.0.5.tgz",
|
"@ucap/ng-store-group": "file:pack/ucap-ng-store-group-0.0.5.tgz",
|
||||||
"@ucap/ng-store-organization": "file:pack/ucap-ng-store-organization-0.0.3.tgz",
|
"@ucap/ng-store-organization": "file:pack/ucap-ng-store-organization-0.0.3.tgz",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@ucap/ng-store-authentication",
|
"name": "@ucap/ng-store-authentication",
|
||||||
"version": "0.0.4",
|
"version": "0.0.5",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,11 +5,14 @@ import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
import { Actions, createEffect, ofType } from '@ngrx/effects';
|
import { Actions, createEffect, ofType } from '@ngrx/effects';
|
||||||
|
|
||||||
|
import { RegViewResponse } from '@ucap/protocol-option';
|
||||||
import { AuthResponse } from '@ucap/protocol-query';
|
import { AuthResponse } from '@ucap/protocol-query';
|
||||||
|
|
||||||
import { QueryProtocolService } from '@ucap/ng-protocol-query';
|
import { QueryProtocolService } from '@ucap/ng-protocol-query';
|
||||||
import { OptionProtocolService } from '@ucap/ng-protocol-option';
|
import { OptionProtocolService } from '@ucap/ng-protocol-option';
|
||||||
|
|
||||||
|
import * as LoginActions from '../login/actions';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
auth,
|
auth,
|
||||||
authSuccess,
|
authSuccess,
|
||||||
|
@ -18,10 +21,18 @@ import {
|
||||||
regViewSuccess,
|
regViewSuccess,
|
||||||
regViewFailure
|
regViewFailure
|
||||||
} from './actions';
|
} from './actions';
|
||||||
import { RegViewResponse } from '@ucap/protocol-option';
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class Effects {
|
export class Effects {
|
||||||
|
postLoginSuccessForAuth$ = createEffect(() => {
|
||||||
|
return this.actions$.pipe(
|
||||||
|
ofType(LoginActions.loginSuccess),
|
||||||
|
map(action =>
|
||||||
|
auth({ req: { deviceType: action.loginSession.deviceType } })
|
||||||
|
)
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
auth$ = createEffect(() =>
|
auth$ = createEffect(() =>
|
||||||
this.actions$.pipe(
|
this.actions$.pipe(
|
||||||
ofType(auth),
|
ofType(auth),
|
||||||
|
@ -39,6 +50,13 @@ export class Effects {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
postLoginSuccessForRegView$ = createEffect(() => {
|
||||||
|
return this.actions$.pipe(
|
||||||
|
ofType(LoginActions.loginSuccess),
|
||||||
|
map(action => regView({ req: {} }))
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
regView$ = createEffect(() =>
|
regView$ = createEffect(() =>
|
||||||
this.actions$.pipe(
|
this.actions$.pipe(
|
||||||
ofType(regView),
|
ofType(regView),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user