Cancel fetch up on destroy

This commit is contained in:
liangping 2021-08-03 11:08:55 +08:00
parent ec23ca0ebd
commit 364b268b02

View File

@ -164,11 +164,9 @@ export default {
console.log(identities)
let promise = Promise.resolve()
identities.forEach(item => {
if (this.islive) {
promise = promise.then(() => new Promise(resolve => {
this.avatar(item, resolve)
}))
}
})
})
},
@ -201,6 +199,7 @@ export default {
return 'primary'
},
avatar(identity, resolve) {
if (this.islive) {
keybase(identity).then(d => {
resolve()
console.log(identity)
@ -214,6 +213,7 @@ export default {
}
}
})
}
},
},
}