多播异常
This commit is contained in:
@@ -44,7 +44,7 @@ export class UserService {
|
|||||||
const subscription = this.apiService.userInfo().subscribe({
|
const subscription = this.apiService.userInfo().subscribe({
|
||||||
next: o => {
|
next: o => {
|
||||||
this.localStorageService.setUser(o.result);
|
this.localStorageService.setUser(o.result);
|
||||||
observer.next(o);
|
this.userObserverArray.forEach(ob => ob.next(o));
|
||||||
},
|
},
|
||||||
error: err => {
|
error: err => {
|
||||||
// console.debug('登录过期 token错误 等等');
|
// console.debug('登录过期 token错误 等等');
|
||||||
@@ -53,8 +53,8 @@ export class UserService {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.localStorageService.removeToken();
|
this.localStorageService.removeToken();
|
||||||
observer.next(new Response<User>(null));
|
this.userObserverArray.forEach(ob => ob.next(new Response<User>(null)));
|
||||||
observer.error(err);
|
this.userObserverArray.forEach(ob => ob.error(err));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user