| | |
| | | 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 = () => { |
| | | if(!inputValue.value) return; |
| | | if (!inputValue.value) return; |
| | | activeChatRoom.value.title = inputValue.value; |
| | | router.push({ |
| | | name: 'AskAnswer', |
| | | state: { |
| | | inputValue: inputValue.value, |
| | | }, |
| | | }); |
| | | }; |
| | | let state = reactive({ |