|
2 | 2 | <div class="item-content mb-16 lighter"> |
3 | 3 | <template v-for="(answer_text, index) in answer_text_list" :key="index"> |
4 | 4 | <div class="avatar mr-8" v-if="showAvatar"> |
5 | | - <img v-if="application.avatar" :src="application.avatar" height="28px" width="28px" /> |
6 | | - <LogoIcon v-else height="28px" width="28px" /> |
| 5 | + <img v-if="application.avatar" :src="application.avatar" height="28px" width="28px"/> |
| 6 | + <LogoIcon v-else height="28px" width="28px"/> |
7 | 7 | </div> |
8 | 8 | <div |
9 | 9 | class="content" |
|
74 | 74 | </div> |
75 | 75 | </template> |
76 | 76 | <script setup lang="ts"> |
77 | | -import { computed, onMounted } from 'vue' |
78 | | -import KnowledgeSourceComponent from '@/components/ai-chat/component/knowledge-source-component/index.vue' |
| 77 | +import {computed, onMounted} from 'vue' |
| 78 | +import KnowledgeSourceComponent |
| 79 | + from '@/components/ai-chat/component/knowledge-source-component/index.vue' |
79 | 80 | import MdRenderer from '@/components/markdown/MdRenderer.vue' |
80 | 81 | import OperationButton from '@/components/ai-chat/component/operation-button/index.vue' |
81 | | -import { type chatType } from '@/api/type/application' |
| 82 | +import {type chatType} from '@/api/type/application' |
82 | 83 | import bus from '@/bus' |
| 84 | +
|
83 | 85 | const props = defineProps<{ |
84 | 86 | chatRecord: chatType |
85 | 87 | application: any |
@@ -148,14 +150,13 @@ function showSource(row: any) { |
148 | 150 | if (props.type === 'log') { |
149 | 151 | return true |
150 | 152 | } else if (row.write_ed && 500 !== row.status) { |
151 | | - if (props.type === 'debug-ai-chat') { |
152 | | - return true |
153 | | - } |
| 153 | + return true |
154 | 154 | } |
155 | 155 | return false |
156 | 156 | } |
| 157 | +
|
157 | 158 | const regenerationChart = (chat: chatType) => { |
158 | | - props.sendMessage(chat.problem_text, { re_chat: true }) |
| 159 | + props.sendMessage(chat.problem_text, {re_chat: true}) |
159 | 160 | } |
160 | 161 | const stopChat = (chat: chatType) => { |
161 | 162 | props.chatManagement.stop(chat.id) |
|
0 commit comments