mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
fix: 修复头像出现D的情况
This commit is contained in:
parent
971167cad3
commit
37ccf4dacb
@ -36,9 +36,13 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.getData();
|
this.getData();
|
||||||
//
|
//
|
||||||
this.subscribe = Store.subscribe('userActive', ({data}) => {
|
this.subscribe = Store.subscribe('userActive', ({type, data}) => {
|
||||||
if (data.userid == this.userid) {
|
if (data.userid == this.userid) {
|
||||||
this.setUser(data)
|
if (type === 'line') {
|
||||||
|
this.user && this.$set(this.user, 'online', data.online);
|
||||||
|
} else {
|
||||||
|
this.setUser(data)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.$store.state.userAvatar[this._uid] = this.$props;
|
this.$store.state.userAvatar[this._uid] = this.$props;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user