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