File tree Expand file tree Collapse file tree 5 files changed +48
-32
lines changed
ai-chat/component/question-content Expand file tree Collapse file tree 5 files changed +48
-32
lines changed Original file line number Diff line number Diff line change 3333 "lodash" : " ^4.17.21" ,
3434 "marked" : " ^12.0.2" ,
3535 "md-editor-v3" : " ^4.16.7" ,
36- "medium-zoom" : " ^1.1.0" ,
3736 "mermaid" : " ^10.9.0" ,
3837 "mitt" : " ^3.0.0" ,
3938 "moment" : " ^2.30.1" ,
Original file line number Diff line number Diff line change 11<template >
22 <!-- 问题内容 -->
3- <div class =" item-content mb-16 lighter" >
4- <div class =" avatar" >
5- <el-image
6- v-if =" application.user_avatar"
7- :src =" application.user_avatar"
8- alt =" "
9- fit =" cover"
10- style =" width : 32px ; height : 32px ; display : block "
11- />
12- <AppAvatar v-else >
13- <img src =" @/assets/user-icon.svg" style =" width : 50% " alt =" " />
14- </AppAvatar >
15- </div >
16- <div class =" content" >
3+ <div class =" qustion-content item-content mb-16 lighter" >
4+ <div class =" content mr-16" >
175 <div class =" text break-all pre-wrap" >
186 <div class =" mb-8" v-if =" document_list.length" >
197 <el-row :gutter =" 10" >
9078 {{ chatRecord.problem_text }}
9179 </div >
9280 </div >
81+ <div class =" avatar" >
82+ <el-image
83+ v-if =" application.user_avatar"
84+ :src =" application.user_avatar"
85+ alt =" "
86+ fit =" cover"
87+ style =" width : 32px ; height : 32px ; display : block "
88+ />
89+ <AppAvatar v-else >
90+ <img src =" @/assets/user-icon.svg" style =" width : 50% " alt =" " />
91+ </AppAvatar >
92+ </div >
9393 </div >
9494</template >
9595<script setup lang="ts">
@@ -137,26 +137,31 @@ function downloadFile(item: any) {
137137onMounted (() => {})
138138 </script >
139139<style lang="scss" scoped>
140- .download-file {
141- height : 43px ;
140+ .qustion-content {
141+ display : flex ;
142+ justify-content : flex-end ;
142143
143- & :hover {
144- color : var (--el-color-primary );
145- border : 1px solid var (--el-color-primary );
144+ .download-file {
145+ height : 43px ;
146146
147- .download-button {
148- display : block ;
149- text-align : center ;
150- line-height : 26px ;
147+ & :hover {
148+ color : var (--el-color-primary );
149+ border : 1px solid var (--el-color-primary );
150+
151+ .download-button {
152+ display : block ;
153+ text-align : center ;
154+ line-height : 26px ;
155+ }
156+
157+ .show {
158+ display : none ;
159+ }
151160 }
152161
153- .show {
162+ .download-button {
154163 display : none ;
155164 }
156165 }
157-
158- .download-button {
159- display : none ;
160- }
161166}
162167 </style >
Original file line number Diff line number Diff line change 3030 ></FormRander >
3131 <MdPreview
3232 v-else
33- noIconfont
3433 ref =" editorRef"
3534 editorId =" preview-only"
3635 :modelValue =" item.content"
Original file line number Diff line number Diff line change 77 <el-collapse-transition >
88 <div class =" border-l mt-8" v-show =" showThink" >
99 <MdPreview
10- noIconfont
1110 ref =" editorRef"
1211 editorId =" preview-only"
1312 :modelValue =" content"
Original file line number Diff line number Diff line change 2929 type =" ai-chat"
3030 :available =" applicationAvailable"
3131 :appId =" applicationDetail?.id"
32- ></AiChat >
32+ :record =" recordList"
33+ >
34+ <template #operateBefore >
35+ <div >
36+ <el-button type =" primary" link class =" new-chat-button mb-8" @click =" newChat" >
37+ <el-icon ><Plus /></el-icon ><span class =" ml-4" >{{ $t('chat.createChat') }}</span >
38+ </el-button >
39+ </div >
40+ </template >
41+ </AiChat >
3342 </div >
3443 <div class =" chat__footer" ></div >
3544 </div >
@@ -57,6 +66,11 @@ const applicationDetail = computed({
5766 },
5867 set : (v ) => {}
5968})
69+ const recordList = ref ([])
70+
71+ function newChat() {
72+ recordList .value = []
73+ }
6074 </script >
6175<style lang="scss">
6276.chat {
You can’t perform that action at this time.
0 commit comments