feat: 优化对话框
This commit is contained in:
parent
1420f6278b
commit
9240949900
@ -61,6 +61,7 @@
|
|||||||
<el-card v-else shadow="always" class="dialog-card">
|
<el-card v-else shadow="always" class="dialog-card">
|
||||||
<MarkdownRenderer :source="item.answer_text"></MarkdownRenderer>
|
<MarkdownRenderer :source="item.answer_text"></MarkdownRenderer>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
<el-button type="primary" link class="mt-8">停止回答</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -154,7 +155,6 @@ function chatMessage() {
|
|||||||
getChartOpenId()
|
getChartOpenId()
|
||||||
} else {
|
} else {
|
||||||
const problem_text = inputValue.value
|
const problem_text = inputValue.value
|
||||||
inputValue.value = ''
|
|
||||||
applicationApi.postChatMessage(chartOpenId.value, problem_text).then(async (response) => {
|
applicationApi.postChatMessage(chartOpenId.value, problem_text).then(async (response) => {
|
||||||
const id = randomId()
|
const id = randomId()
|
||||||
chatList.value.push({
|
chatList.value.push({
|
||||||
@ -163,6 +163,7 @@ function chatMessage() {
|
|||||||
answer_text: '',
|
answer_text: '',
|
||||||
buffer: []
|
buffer: []
|
||||||
})
|
})
|
||||||
|
inputValue.value = ''
|
||||||
const row = chatList.value.find((item) => item.id === id)
|
const row = chatList.value.find((item) => item.id === id)
|
||||||
if (row) {
|
if (row) {
|
||||||
const chatMange = new ChatManage(row, 50, loading)
|
const chatMange = new ChatManage(row, 50, loading)
|
||||||
|
|||||||
@ -10,7 +10,6 @@ import App from './App.vue'
|
|||||||
import router from '@/router'
|
import router from '@/router'
|
||||||
import Components from '@/components'
|
import Components from '@/components'
|
||||||
|
|
||||||
import 'highlight.js/styles/default.css'
|
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
app.use(store)
|
app.use(store)
|
||||||
app.use(directives)
|
app.use(directives)
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
@import 'element-plus/dist/index.css';
|
@import 'element-plus/dist/index.css';
|
||||||
@import './variables.scss';
|
@import './variables.scss';
|
||||||
@import './app.scss';
|
@import './app.scss';
|
||||||
@import './element-plus.scss';
|
@import './element-plus.scss';
|
||||||
@import 'nprogress/nprogress.css'
|
@import 'nprogress/nprogress.css';
|
||||||
|
@import 'highlight.js/styles/default.css';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user