mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: Fix the data source-related issues in the PR
This commit is contained in:
@@ -51,46 +51,44 @@ const recordsBeforeCurrentQuestion = computed(() =>
|
||||
<template v-if="item.error">
|
||||
{{ error }}
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="item-list">
|
||||
<div class="inner-title">{{ t('chat.log_system') }}</div>
|
||||
<div class="inner-item">
|
||||
<div class="inner-item-title">
|
||||
{{ systemRecord.type }}
|
||||
</div>
|
||||
<div class="inner-item-description">
|
||||
<SQLComponent :sql="systemRecord.content" />
|
||||
</div>
|
||||
<div class="item-list">
|
||||
<div class="inner-title">{{ t('chat.log_system') }}</div>
|
||||
<div class="inner-item">
|
||||
<div class="inner-item-title">
|
||||
{{ systemRecord.type }}
|
||||
</div>
|
||||
<template v-if="recordsBeforeCurrentQuestion.length > 0">
|
||||
<div class="inner-title">{{ t('chat.log_history') }}</div>
|
||||
<div class="inner-item">
|
||||
<div v-for="(ele, index) in recordsBeforeCurrentQuestion" :key="index">
|
||||
<div class="inner-item-title">
|
||||
{{ ele.type }}
|
||||
</div>
|
||||
<div class="inner-item-description">
|
||||
<SQLComponent :sql="ele.content" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div class="inner-title">{{ t('chat.log_question') }}</div>
|
||||
<div class="inner-item">
|
||||
<div class="inner-item-description">
|
||||
<SQLComponent :sql="lastHumanRecord.content" />
|
||||
</div>
|
||||
<div class="inner-item-description">
|
||||
<SQLComponent :sql="systemRecord.content" />
|
||||
</div>
|
||||
<template v-if="lastAiAfterHuman">
|
||||
<div class="inner-title">{{ t('chat.log_answer') }}</div>
|
||||
<div class="inner-item">
|
||||
<div class="inner-item-description">
|
||||
<SQLComponent :sql="lastAiAfterHuman.content" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="recordsBeforeCurrentQuestion.length > 0">
|
||||
<div class="inner-title">{{ t('chat.log_history') }}</div>
|
||||
<div class="inner-item">
|
||||
<div v-for="(ele, index) in recordsBeforeCurrentQuestion" :key="index">
|
||||
<div class="inner-item-title">
|
||||
{{ ele.type }}
|
||||
</div>
|
||||
<div class="inner-item-description">
|
||||
<SQLComponent :sql="ele.content" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div class="inner-title">{{ t('chat.log_question') }}</div>
|
||||
<div class="inner-item">
|
||||
<div class="inner-item-description">
|
||||
<SQLComponent :sql="lastHumanRecord.content" />
|
||||
</div>
|
||||
</div>
|
||||
<template v-if="lastAiAfterHuman">
|
||||
<div class="inner-title">{{ t('chat.log_answer') }}</div>
|
||||
<div class="inner-item">
|
||||
<div class="inner-item-description">
|
||||
<SQLComponent :sql="lastAiAfterHuman.content" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</BaseContent>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user