forked from AkkomaGang/akkoma-fe
Fix error when login
This commit is contained in:
parent
d4a2376e12
commit
b4709515f2
1 changed files with 15 additions and 0 deletions
|
@ -47,7 +47,22 @@ const Timeline = {
|
|||
UserCard
|
||||
},
|
||||
created () {
|
||||
const store = this.$store
|
||||
const credentials = store.state.users.currentUser.credentials
|
||||
const showImmediately = this.timeline.visibleStatuses.length === 0
|
||||
|
||||
window.addEventListener('scroll', this.scrollLoad)
|
||||
|
||||
if (typeof credentials !== 'undefined' || this.timelineName !== 'friends') {
|
||||
timelineFetcher.fetchAndUpdate({
|
||||
store,
|
||||
credentials,
|
||||
timeline: this.timelineName,
|
||||
showImmediately,
|
||||
userId: this.userId,
|
||||
tag: this.tag
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
if (typeof document.hidden !== 'undefined') {
|
||||
|
|
Loading…
Reference in a new issue