wujingjing
2024-06-28 96d13ee431fef2fb5eaba05654cd7e0216ce36ab
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: [