From feb89d709f61ee862d5914f429a855f3e990898b Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 28 十月 2024 10:11:54 +0800 Subject: [PATCH] Merge branch 'test' of http://47.103.154.90:83/r/WI/Web.V1.0 into test --- src/views/project/ch/home/component/waterRight/top.vue | 26 ++++++++++++-------------- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/views/project/ch/home/component/waterRight/top.vue b/src/views/project/ch/home/component/waterRight/top.vue index 8216001..8f3e1f9 100644 --- a/src/views/project/ch/home/component/waterRight/top.vue +++ b/src/views/project/ch/home/component/waterRight/top.vue @@ -1,7 +1,7 @@ <template> <div class="flex items-center"> - <img src="/static/images/logo/logo-mini.svg" alt="logo" class="layout-logo-medium-img" /> - <p class="set-waterTitle"><strong>WI 姘村姟鏅鸿兘涓撳</strong>鏅烘収姘村姟鍔╂墜</p> + <img src="/static/images/logo/logoWithNoName.png" alt="logo" class="layout-logo-medium-img" /> + <p class="set-waterTitle"><strong>WI 姘村姟鏅鸿兘绠″</strong>鏅烘収姘村姟鍔╂墜</p> </div> <div class="flex items-center pc-roleList"> <!-- <div v-for="(item, index) in llmList" :key="item.logicId" class="flex items-center pl-6" @click="handleClick(item)"> @@ -17,23 +17,24 @@ </div> </div> --> </div> - <PlayBar v-model="inputValue" @send-click="sendClick" /> + <PlayBar v-model="inputValue" @send-click="sendClick" :is-home="true" /> </template> <script setup lang="ts"> import { ElMessage } from 'element-plus'; -import { onMounted, ref } from 'vue'; +import { ref } from 'vue'; import { GetLLMList, setHistoryGroupTitle } from '/@/api/ai/chat'; import PlayBar from '/@/components/chat/components/playBar/PlayBar.vue'; import router from '/@/router'; import { activeChatRoom, activeLLMId, activeSectionAId } from '/@/stores/chatRoom'; -import emitter from '/@/utils/mitt'; import { handleNormalAuth } from '/@/utils/request'; + +import logo from './logo.png' const emits = defineEmits(['sendClick']); const inputValue = ref('浣犳槸璋侊紵'); -const sendClick = async () => { - if (!inputValue.value) return; +const sendClick = async (cb) => { + if (!inputValue.value.trim()) return; if (!activeSectionAId.value) { ElMessage.warning('璇烽�夋嫨搴旂敤鍦烘櫙'); return; @@ -94,16 +95,13 @@ setLLm(item.logicId); }; -const updateChatInput = (val)=>{ +const updateChatInput = (val) => { inputValue.value = val; - -} +}; defineExpose({ - updateChatInput -}) - - + updateChatInput, +}); </script> <style scoped lang="scss"> .set-waterTitle { -- Gitblit v1.9.3