From 3ef8e36d831ff20a241294b096a70f729752e480 Mon Sep 17 00:00:00 2001 From: yangyin <18723093654@163.com> Date: 星期四, 05 十二月 2024 10:40:14 +0800 Subject: [PATCH] 修改分享链接 --- src/components/chat/Chat.vue | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index 6c47b0f..62f7806 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -181,9 +181,7 @@ >锛堝凡鍋滄锛�</span > <!-- parseContent 杩斿洖涓� null --> - <p v-if="!item.content && !isTalking" class="text-red-500"> - 鏆傛棤鏁版嵁 - </p> + <p v-if="!item.content && !isTalking && !item.isStopMsg" class="text-red-500">鏆傛棤鏁版嵁</p> <!-- #endregion --> <!-- #endregion --> </div> @@ -305,23 +303,21 @@ <el-dialog title="鍒嗕韩閾炬帴" v-model="shareCodeIsShow" width="25%" modal-append-to-body lock-scroll :before-close="closeShareClick"> <div class="w100 h100 flex justify-center items-center flex-col text-center"> <div class="qrcode h100" ref="qrcodeRef"></div> - <div class="h100 w100 flex flex-col justify-center items-center"> - <span class="h100 text-[#8d8e99] text-[12px] mt-2">{{ shareCoderUrl }}</span> - <span class="text-[#1d86ff] text-[12px] cursor-pointer" @click="copyShareCodeClick">澶嶅埗</span> - </div> </div> </el-dialog> </div> </template> <script setup lang="ts"> -import axios, { CancelTokenSource } from 'axios'; +import type { CancelTokenSource } from 'axios'; +import axios from 'axios'; import { ElMessage } from 'element-plus'; import { findLast, orderBy } from 'lodash-es'; import moment from 'moment'; import QRCode from 'qrcodejs2-fixes'; import { computed, nextTick, onActivated, onMounted, ref } from 'vue'; import useClipboard from 'vue-clipboard3'; +import { loadAmisSource } from '../amis/load'; import FeedbackPanel from './components/FeedbackPanel.vue'; import { useAssistantContentOpt } from './hooks/useAssistantContentOpt'; import { convertProcessItem, useScrollLoad } from './hooks/useScrollLoad'; @@ -348,7 +344,6 @@ import emitter from '/@/utils/mitt'; import { ErrorCode } from '/@/utils/request'; import { toMyFixed } from '/@/utils/util'; -import { loadAmisSource } from '../amis/load'; const chatWidth = '75%'; const voicePageIsShow = ref(false); let isTalking = ref(false); @@ -743,7 +738,7 @@ }, 300); } } - loadAmisSource() + loadAmisSource(); }); //#region ====================== 鍏宠仈鏌ヨ ====================== const relativeQueryClick = async (val) => { @@ -869,7 +864,7 @@ colorLight: '#ffffff', }); }); - // toClipboard(url); + copyShareCodeClick(); }; //閾炬帴澶嶅埗 const copyShareCodeClick = () => { -- Gitblit v1.9.3