mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix
This commit is contained in:
@@ -31,7 +31,7 @@ export class DespachoStoreService {
|
||||
this.keyName = (SHA1("DespachoStoreService"+ 'home/eventSource')).toString()
|
||||
window['ObjectQueryService'] = this.Query()
|
||||
|
||||
setTimeout(()=>{
|
||||
setTimeout(() => {
|
||||
let restore = localstoreService.get(this.keyName, {})
|
||||
this._list = restore.list || []
|
||||
this._count = parseInt(restore.count) || 0
|
||||
|
||||
@@ -43,11 +43,15 @@ class SessionService {
|
||||
constructor() {
|
||||
|
||||
this.keyName = (SHA1("SessionService")).toString()
|
||||
let restore = localstoreService.get(this.keyName, {})
|
||||
let restore = this.getDataFromLocalStorage()
|
||||
this._user = restore.user || new UserSession()
|
||||
|
||||
}
|
||||
|
||||
getDataFromLocalStorage() {
|
||||
return localstoreService.get(this.keyName, {})
|
||||
}
|
||||
|
||||
get user(): UserSession {
|
||||
return this._user || new UserSession()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user