yangyin
2024-10-25 fa1f2d3453128c686d19504796426d9c27b8c0fb
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" :is-home="true"/>
   <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 (cb) => {
   if (!inputValue.value) return;
   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 {