|
|
@@ -23,9 +23,11 @@
|
|
|
:data-item-key="item.client_gen_id"
|
|
|
>
|
|
|
<div class="dialog-header" v-if="item?.question">
|
|
|
- <div class="user-name" style="background-color: rgb(255, 110, 110)">
|
|
|
+ <!-- <div class="user-name" style="background-color: rgb(255, 110, 110)">
|
|
|
{{ userName.slice(0, 1) }}
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <ClientUserAvatar />
|
|
|
</div>
|
|
|
|
|
|
<div class="dialog-footer" v-if="item?.question">
|
|
|
@@ -269,6 +271,7 @@ import initTempHistory, {getChatIdFromUrl} from './answer-effect/temp-history';
|
|
|
|
|
|
import Question from './dialog-wrap/Question.vue';
|
|
|
import Suggestion from './dialog-wrap/Suggestion.vue';
|
|
|
+import ClientUserAvatar from './dialog-wrap/ClientUserAvatar.vue';
|
|
|
|
|
|
import Answer from './dialog-wrap/Answer.vue';
|
|
|
|
|
|
@@ -284,6 +287,7 @@ export default defineComponent({
|
|
|
DialogFeedback,
|
|
|
|
|
|
Suggestion,
|
|
|
+ ClientUserAvatar,
|
|
|
|
|
|
Question,
|
|
|
Answer,
|
|
|
@@ -314,8 +318,12 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
const { helper, ajax } = inject("$global");
|
|
|
- const userName = ref(helper.read("userName") || "");
|
|
|
+ // const userName = ref(helper.read("userName") || "");
|
|
|
|
|
|
+ /**
|
|
|
+ * 此数据定义,仅用于暂时隐藏 重新生成、复制、收藏、点赞、反馈、分享 按钮
|
|
|
+ * 如果这些按钮需要显示,则可将此定义移除,同时移除 对应的 v-if
|
|
|
+ */
|
|
|
const show_info_btns = ref(false);
|
|
|
|
|
|
/**
|
|
|
@@ -901,7 +909,7 @@ export default defineComponent({
|
|
|
stopWriting,
|
|
|
knowledgeList,
|
|
|
dialogConfig,
|
|
|
- userName,
|
|
|
+ // userName,
|
|
|
downloadFile,
|
|
|
|
|
|
openDocument,
|
|
|
@@ -925,7 +933,7 @@ export default defineComponent({
|
|
|
}
|
|
|
</style>
|
|
|
<style scoped>
|
|
|
-.user-name {
|
|
|
+/* .user-name {
|
|
|
width: 28px;
|
|
|
height: 28px;
|
|
|
border-radius: 14px;
|
|
|
@@ -933,7 +941,7 @@ export default defineComponent({
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
color: #fff;
|
|
|
-}
|
|
|
+} */
|
|
|
|
|
|
.paper-download {
|
|
|
padding-left: 50px;
|