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