wujingjing
2024-10-16 e5146fb2b0230b9a3c4002290639d69a4bc82467
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>
      <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,7 +17,7 @@
         </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">
@@ -32,8 +32,8 @@
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,12 +94,16 @@
   setLLm(item.logicId);
};
onMounted(() => {
   // getLLMList();
   emitter.on('updateChatInput', (value) => {
      inputValue.value = value;
   });
});
const updateChatInput = (val)=>{
   inputValue.value = val;
}
defineExpose({
   updateChatInput
})
</script>
<style scoped lang="scss">
.set-waterTitle {