pocClass.vue 902 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="chatArea">
  3. <iframe ref="iframeRef" class="ca_iframe" allow="camera *; microphone *;display-capture;midi;encrypted-media;" :src="src"></iframe>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. userId: this.$route.query.userid,
  11. org: this.$route.query.org,
  12. oid: this.$route.query.oid,
  13. type:this.$route.query.type,
  14. src:"https://beta.cloud.cocorobo.cn/aigpt/#/js?active_role=3"
  15. };
  16. },
  17. methods: {
  18. },
  19. mounted() {
  20. if (this.type == 1) {
  21. this.src = `https://beta.cloud.cocorobo.cn/aigpt/#/js?active_role=${5}`;
  22. console.log("5")
  23. } else if (this.type == 2) {
  24. this.src = `https://beta.cloud.cocorobo.cn/aigpt/#/js?active_role=${3}`;
  25. console.log(3)
  26. }
  27. }
  28. };
  29. </script>
  30. <style scoped>
  31. .chatArea{
  32. width: 100vw;
  33. height: 100vh;
  34. overflow: hidden;
  35. }
  36. .ca_iframe{
  37. width: 100%;
  38. height: 100%;
  39. }
  40. </style>