wujingjing
2025-04-07 457cc6cf166d3b6c22be4f78c1db8802a7fbb4c7
src/views/project/ch/home/component/waterRight/top.vue
@@ -1,10 +1,10 @@
<template>
   <div class="flex items-center">
   <div class="flex items-center mb-8">
      <img src="/static/images/logo/logoWithNoName.png" 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>
   <PlayBar v-model="inputValue" @send-click="sendClick" :is-home="true" />
   <!-- <div class="flex items-center pc-roleList"></div> -->
   <PlayBar style="width: 760px" v-model="inputValue" @send-click="sendClick" :is-home="true" />
</template>
<script setup lang="ts">
@@ -13,18 +13,15 @@
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 { activeChatRoom, activeLLMId } from '/@/stores/chatRoom';
import { handleNormalAuth } from '/@/utils/request';
const emits = defineEmits(['sendClick']);
const inputValue = ref('你是谁?');
const inputValue = ref('');
const sendClick = async (cb) => {
   if (!inputValue.value.trim()) return;
   if (!activeSectionAId.value) {
      ElMessage.warning('请选择应用场景');
      return;
   }
   if (!handleNormalAuth()) {
      return;
   }