From ce77c8765e7b63ad9ac8094434fe1732695ed65c Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期五, 28 六月 2024 15:17:58 +0800
Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.V1.0

---
 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..0e707fc 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';
 const emits = defineEmits(['sendClick']);
+const inputValue = ref('');
 
 const sendClick = () => {
-	emits('sendClick');
+	if(!inputValue.value) return;
+	router.push({
+		name: 'AskAnswer',
+		state: {
+			inputValue: inputValue.value,
+		},
+	});
 };
 let state = reactive({
 	roleList: [

--
Gitblit v1.9.3