Cancel fetch up on destroy
This commit is contained in:
parent
ec23ca0ebd
commit
364b268b02
@ -164,11 +164,9 @@ export default {
|
|||||||
console.log(identities)
|
console.log(identities)
|
||||||
let promise = Promise.resolve()
|
let promise = Promise.resolve()
|
||||||
identities.forEach(item => {
|
identities.forEach(item => {
|
||||||
if (this.islive) {
|
|
||||||
promise = promise.then(() => new Promise(resolve => {
|
promise = promise.then(() => new Promise(resolve => {
|
||||||
this.avatar(item, resolve)
|
this.avatar(item, resolve)
|
||||||
}))
|
}))
|
||||||
}
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -201,6 +199,7 @@ export default {
|
|||||||
return 'primary'
|
return 'primary'
|
||||||
},
|
},
|
||||||
avatar(identity, resolve) {
|
avatar(identity, resolve) {
|
||||||
|
if (this.islive) {
|
||||||
keybase(identity).then(d => {
|
keybase(identity).then(d => {
|
||||||
resolve()
|
resolve()
|
||||||
console.log(identity)
|
console.log(identity)
|
||||||
@ -214,6 +213,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user