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