feat: 优化对话框

This commit is contained in:
wangdan-fit2cloud 2023-11-29 16:05:07 +08:00
parent 1420f6278b
commit 9240949900
3 changed files with 4 additions and 5 deletions

View File

@ -61,6 +61,7 @@
<el-card v-else shadow="always" class="dialog-card">
<MarkdownRenderer :source="item.answer_text"></MarkdownRenderer>
</el-card>
<el-button type="primary" link class="mt-8">停止回答</el-button>
</div>
</div>
</template>
@ -154,7 +155,6 @@ function chatMessage() {
getChartOpenId()
} else {
const problem_text = inputValue.value
inputValue.value = ''
applicationApi.postChatMessage(chartOpenId.value, problem_text).then(async (response) => {
const id = randomId()
chatList.value.push({
@ -163,6 +163,7 @@ function chatMessage() {
answer_text: '',
buffer: []
})
inputValue.value = ''
const row = chatList.value.find((item) => item.id === id)
if (row) {
const chatMange = new ChatManage(row, 50, loading)

View File

@ -10,7 +10,6 @@ import App from './App.vue'
import router from '@/router'
import Components from '@/components'
import 'highlight.js/styles/default.css'
const app = createApp(App)
app.use(store)
app.use(directives)

View File

@ -1,7 +1,6 @@
@import 'element-plus/dist/index.css';
@import './variables.scss';
@import './app.scss';
@import './element-plus.scss';
@import 'nprogress/nprogress.css'
@import 'nprogress/nprogress.css';
@import 'highlight.js/styles/default.css';