fix: clean up formatting and improve readability in index.vue
This commit is contained in:
parent
350095a822
commit
88fd875a23
@ -75,11 +75,13 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import {computed, onMounted} from 'vue'
|
||||
import KnowledgeSourceComponent from '@/components/ai-chat/component/knowledge-source-component/index.vue'
|
||||
import KnowledgeSourceComponent
|
||||
from '@/components/ai-chat/component/knowledge-source-component/index.vue'
|
||||
import MdRenderer from '@/components/markdown/MdRenderer.vue'
|
||||
import OperationButton from '@/components/ai-chat/component/operation-button/index.vue'
|
||||
import {type chatType} from '@/api/type/application'
|
||||
import bus from '@/bus'
|
||||
|
||||
const props = defineProps<{
|
||||
chatRecord: chatType
|
||||
application: any
|
||||
@ -148,12 +150,11 @@ function showSource(row: any) {
|
||||
if (props.type === 'log') {
|
||||
return true
|
||||
} else if (row.write_ed && 500 !== row.status) {
|
||||
if (props.type === 'debug-ai-chat') {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
const regenerationChart = (chat: chatType) => {
|
||||
props.sendMessage(chat.problem_text, {re_chat: true})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user