mirror of
				https://github.com/yangjian102621/geekai.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	render <br> tag for ChatPlus page
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user