gerson
2024-07-01 87bce04d7cdf5ca427757071e7cc3b0847b64dfc
src/views/project/ch/home/component/waterRight/top.vue
@@ -31,13 +31,18 @@
import { GetLLMList, SetLLM } from '/@/api/ai/chat';
import PlayBar from '/@/components/chat/components/playBar/PlayBar.vue';
import router from '/@/router';
import { activeChatRoom, activeLLMId } from '/@/stores/chatRoom';
import { activeChatRoom, activeLLMId, activeSectionAId } from '/@/stores/chatRoom';
import emitter from '/@/utils/mitt';
import { ElMessage } from 'element-plus';
const emits = defineEmits(['sendClick']);
const inputValue = ref('');
const sendClick = () => {
   if (!inputValue.value) return;
   if (!activeSectionAId.value) {
      ElMessage.warning('请选择应用场景');
      return;
   }
   activeChatRoom.value.title = inputValue.value;
   router.push({
      name: 'AskAnswer',