|
|
@@ -48,15 +48,17 @@ export default {
|
|
|
if (this.info.storeUserId !== this.userInfo.id) {
|
|
|
return {
|
|
|
userId: this.info.storeUserId,
|
|
|
- img: this.info.storeUser.store.logo,
|
|
|
- name: this.info.storeUser.store.storeName
|
|
|
+ img: this.info.storeUser.store
|
|
|
+ ? this.getLogo(this.info.storeUser.store.logo)
|
|
|
+ : this.info.storeUser.store.avatar,
|
|
|
+ name: this.info.storeUser.store ? this.info.storeUser.store.storeName : this.info.storeUser.nickname
|
|
|
};
|
|
|
}
|
|
|
if (this.info.userId !== this.userInfo.id) {
|
|
|
return {
|
|
|
userId: this.info.userId,
|
|
|
- img: this.info.user.avatar,
|
|
|
- name: this.info.user.nickname
|
|
|
+ img: this.info.user.store ? this.getLogo(this.info.user.store.logo) : this.info.user.avatar,
|
|
|
+ name: this.info.user.store ? this.info.user.store.storeName : this.info.user.nickname
|
|
|
};
|
|
|
}
|
|
|
|