From 00cf84c906a48c3d62d3a0bf5dab78353f693b77 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Mon, 14 Nov 2022 19:47:22 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/comments/comments.vue | 5 ++++-
components/interact-fixed/interact-fixed.vue | 8 ++++----
pages/resource/qaDetail.vue | 2 ++
3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/components/comments/comments.vue b/components/comments/comments.vue
index f005150..b4f94cc 100644
--- a/components/comments/comments.vue
+++ b/components/comments/comments.vue
@@ -275,9 +275,12 @@
list.forEach((item,index)=>{
res.result.some(author=>{
if(author.aid==item.sysCreateAid){
- if(author.avatar != '') {
+ if(item.parentId == "-1" ) {
+ item.avatar= author.avatar;
+ } else if(author.avatar != ''){
item.avatar=this.$config.fileUrl + author.avatar;
}
+ // item.avatar= author.avatar;
item.sex=author.sex;
item.orgInfo=author.orgInfo;
return true;
diff --git a/components/interact-fixed/interact-fixed.vue b/components/interact-fixed/interact-fixed.vue
index 02c5e26..c748fd5 100644
--- a/components/interact-fixed/interact-fixed.vue
+++ b/components/interact-fixed/interact-fixed.vue
@@ -25,10 +25,6 @@
-
-
-
-
@@ -36,6 +32,10 @@
+
+
+
+
diff --git a/pages/resource/qaDetail.vue b/pages/resource/qaDetail.vue
index 24af82d..7df06ec 100644
--- a/pages/resource/qaDetail.vue
+++ b/pages/resource/qaDetail.vue
@@ -383,6 +383,7 @@ export default {
// } else {
// res.result.avatar='';
// }
+ res.result.avatar=author.avatar;
res.result.sex = author.sex;
res.result.orgInfo=author.orgInfo;
res.result.ucode=author.code;
@@ -591,6 +592,7 @@ export default {
// if(author.avatar!=''){
// item.avatar=$this.fileUrl+author.avatar;
// }
+ item.avatar=author.avatar;
item.sex=author.sex;
item.ucode=author.code;
item.orgInfo=author.orgInfo;