bug fixed
This commit is contained in:
parent
6b6ebc29d4
commit
ed7bc81c00
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -2373,8 +2373,8 @@
|
|||
"dev": true
|
||||
},
|
||||
"@ucap/ng-store-authentication": {
|
||||
"version": "file:pack/ucap-ng-store-authentication-0.0.5.tgz",
|
||||
"integrity": "sha512-ee4f9YqzCpmBu5YG9wnQXVtplkQwnG6IJaPHhwt8tXayW90PVq1Yxtn3SOOxNp/xCubTuSfJPo/kwcOF67bKug=="
|
||||
"version": "file:pack/ucap-ng-store-authentication-0.0.6.tgz",
|
||||
"integrity": "sha512-qP3+rsni/z/JOTR/VPjH+09buvHphJc4IHMSS+HlAFvJPeLcWXWChANzpUG3tWNxEbrh8GhaOlzYkGyqBJTVLA=="
|
||||
},
|
||||
"@ucap/ng-store-chat": {
|
||||
"version": "file:pack/ucap-ng-store-chat-0.0.4.tgz",
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
"@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-umg": "file:pack/ucap-ng-protocol-umg-0.0.1.tgz",
|
||||
"@ucap/ng-store-authentication": "file:pack/ucap-ng-store-authentication-0.0.5.tgz",
|
||||
"@ucap/ng-store-authentication": "file:pack/ucap-ng-store-authentication-0.0.6.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-organization": "file:pack/ucap-ng-store-organization-0.0.3.tgz",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ucap/ng-store-authentication",
|
||||
"version": "0.0.5",
|
||||
"version": "0.0.6",
|
||||
"publishConfig": {
|
||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
||||
},
|
||||
|
|
|
@ -1,14 +1,26 @@
|
|||
import { createReducer, on } from '@ngrx/store';
|
||||
|
||||
import { initialState } from './state';
|
||||
import { authSuccess } from './actions';
|
||||
import { authSuccess, regViewSuccess } from './actions';
|
||||
|
||||
export const reducer = createReducer(
|
||||
initialState,
|
||||
on(authSuccess, (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
auth: action.res
|
||||
authResponse: {
|
||||
...state.authResponse,
|
||||
...action.res
|
||||
}
|
||||
};
|
||||
}),
|
||||
on(regViewSuccess, (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
regViewResponse: {
|
||||
...state.regViewResponse,
|
||||
...action.res
|
||||
}
|
||||
};
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user