ConversationBoard.vue 926 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <LayoutExperience>
  3. <ContentContainer :containerStyle="content_style">
  4. <ChatAsideMenu />
  5. <ConversationBoardContainer @agentActive="handleAgentActive" />
  6. </ContentContainer>
  7. </LayoutExperience>
  8. </template>
  9. <script setup>
  10. import { useRouter } from 'vue-router';
  11. import LayoutExperience from './layout/LayoutExperience.vue';
  12. import ContentContainer from './layout/ContentContainer.vue';
  13. import ChatAsideMenu from './conversation/ChatAsideMenu.vue';
  14. import ConversationBoardContainer from './conversation/ConversationBoardContainer.vue';
  15. import bg_image from '../assets/chat/board-bg.png';
  16. const router = useRouter();
  17. const content_style = {
  18. backgroundImage: `url(${bg_image})`,
  19. backgroundRepeat: 'no-repeat',
  20. backgroundSize: 'contain'
  21. };
  22. const handleAgentActive = (target_id) => {
  23. router.push({
  24. path: '/chat/qa',
  25. query: {
  26. agent: target_id
  27. }
  28. });
  29. };
  30. </script>