|
|
@@ -12,6 +12,7 @@ import MarkdownIt from 'markdown-it'
|
|
|
import 'github-markdown-css/github-markdown.css'
|
|
|
|
|
|
const userStore = useUserStore()
|
|
|
+const AIQuestion = ref()
|
|
|
const md = new MarkdownIt({
|
|
|
html: true,
|
|
|
linkify: true,
|
|
|
@@ -128,6 +129,7 @@ const progressInterval = ref()
|
|
|
const serial_no = ref()
|
|
|
const is_FixedAnswer = ref(true) // 是否为预设问题 true是自由问题 false是预设问题
|
|
|
const aiChat = (question, isPresetQuestion) => {
|
|
|
+ AIQuestion.value.AIRobotInit()
|
|
|
serial_no.value = userStore.userInfo?.uname + Date.now().toString()
|
|
|
let fixed_faq = ''
|
|
|
if (!is_FixedAnswer.value) {
|
|
|
@@ -357,7 +359,7 @@ defineExpose({
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <AIQuestions :modalSize="modalSize" @question="handleSend"></AIQuestions>
|
|
|
+ <AIQuestions ref="AIQuestion" :modalSize="modalSize" @question="handleSend"></AIQuestions>
|
|
|
<div class="warning-tips" v-if="isShowTips">
|
|
|
<div class="warning-bg">
|
|
|
<span class="warning-icon font_family icon-icon_warning_fill_b"></span>
|