合并为一个项目 #14

Merged
xiaohai2271 merged 56 commits from issue11 into master 2020-05-16 22:35:08 +08:00
Showing only changes of commit adb8f889c6 - Show all commits

View File

@@ -44,7 +44,7 @@ export class UserService {
const subscription = this.apiService.userInfo().subscribe({
next: o => {
this.localStorageService.setUser(o.result);
observer.next(o);
this.userObserverArray.forEach(ob => ob.next(o));
},
error: err => {
// console.debug('登录过期 token错误 等等');
@@ -53,8 +53,8 @@ export class UserService {
return
}
this.localStorageService.removeToken();
observer.next(new Response<User>(null));
observer.error(err);
this.userObserverArray.forEach(ob => ob.next(new Response<User>(null)));
this.userObserverArray.forEach(ob => ob.error(err));
}
});
return {