From 08ecff11a4bb3a5a2749b3a6d8554447f73e0b22 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期六, 29 六月 2024 11:30:18 +0800 Subject: [PATCH] fix: 查看更多的跳转 --- src/views/project/ch/home/component/waterRight/top.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/project/ch/home/component/waterRight/top.vue b/src/views/project/ch/home/component/waterRight/top.vue index 862779b..bf73d7e 100644 --- a/src/views/project/ch/home/component/waterRight/top.vue +++ b/src/views/project/ch/home/component/waterRight/top.vue @@ -19,17 +19,24 @@ </div> </div> </div> - <PlayBar @send-click="sendClick"/> - + <PlayBar v-model="inputValue" @send-click="sendClick" /> </template> <script setup lang="ts"> -import { reactive } from 'vue'; -import PlayBar from '/@/components/chat/components/playBar/PlayBar.vue' +import { reactive, ref } from 'vue'; +import PlayBar from '/@/components/chat/components/playBar/PlayBar.vue'; +import router from '/@/router'; +import { activeChatRoom } from '/@/stores/chatRoom'; const emits = defineEmits(['sendClick']); +const inputValue = ref(''); const sendClick = () => { - emits('sendClick'); + if(!inputValue.value) return; + activeChatRoom.value.title = inputValue.value; + router.push({ + name: 'AskAnswer', + + }); }; let state = reactive({ roleList: [ -- Gitblit v1.9.3