mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-02 20:28:00 +08:00
render <br> tag for ChatPlus page
This commit is contained in:
parent
52398d9b8d
commit
54dccbef4c
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="chat-line chat-line-right">
|
||||
<div class="chat-item">
|
||||
<div class="content">{{ content }}</div>
|
||||
<div class="content" v-html="content"></div>
|
||||
<div class="triangle"></div>
|
||||
</div>
|
||||
|
||||
|
@ -128,7 +128,7 @@
|
||||
import {defineComponent, nextTick} from 'vue'
|
||||
import ChatPrompt from "@/components/ChatPrompt.vue";
|
||||
import ChatReply from "@/components/ChatReply.vue";
|
||||
import {isMobile, randString} from "@/utils/libs";
|
||||
import {isMobile, randString, renderInputText} from "@/utils/libs";
|
||||
import {ElMessage, ElMessageBox} from 'element-plus'
|
||||
import {Tools, Lock, Delete, VideoPause, RefreshRight} from '@element-plus/icons-vue'
|
||||
import ConfigDialog from '@/components/ConfigDialog.vue'
|
||||
@ -401,7 +401,7 @@ export default defineComponent({
|
||||
type: "prompt",
|
||||
id: randString(32),
|
||||
icon: 'images/avatar/user.png',
|
||||
content: this.inputValue
|
||||
content: renderInputText(this.inputValue)
|
||||
});
|
||||
|
||||
this.sending = true;
|
||||
|
@ -175,7 +175,7 @@
|
||||
import {defineComponent, nextTick} from 'vue'
|
||||
import ChatPrompt from "@/components/plus/ChatPrompt.vue";
|
||||
import ChatReply from "@/components/plus/ChatReply.vue";
|
||||
import {isMobile, randString} from "@/utils/libs";
|
||||
import {isMobile, randString, renderInputText} from "@/utils/libs";
|
||||
import {ElMessage, ElMessageBox} from 'element-plus'
|
||||
import {
|
||||
Tools,
|
||||
@ -486,7 +486,7 @@ export default defineComponent({
|
||||
type: "prompt",
|
||||
id: randString(32),
|
||||
icon: 'images/avatar/user.png',
|
||||
content: this.inputValue
|
||||
content: renderInputText(this.inputValue)
|
||||
});
|
||||
|
||||
this.sending = true;
|
||||
|
Loading…
Reference in New Issue
Block a user