SanHQin преди 7 месеца
родител
ревизия
4af54a06ad
променени са 3 файла, в които са добавени 41 реда и са изтрити 2 реда
  1. 39 0
      src/components/pages/pocAiClassroom/chatArea2.vue
  2. 1 1
      src/components/pages/pocAiClassroom/pocClass.vue
  3. 1 1
      src/router/index.js

+ 39 - 0
src/components/pages/pocAiClassroom/chatArea2.vue

@@ -0,0 +1,39 @@
+<template>
+  <div class="chatArea">
+		<iframe ref="iframeRef" class="ca_iframe" allow="camera *; microphone *;display-capture;midi;encrypted-media;" :src="src"></iframe>
+  </div>
+</template>
+
+<script>
+
+export default {
+
+  data() {
+    return {
+      userId: this.$route.query.userid,
+      org: this.$route.query.org,
+      oid: this.$route.query.oid,
+			src:"https://beta.cloud.cocorobo.cn/aigpt/#/js?active_role=0"
+    };
+  },
+  methods: {
+
+  },
+  mounted() {
+    
+  }
+};
+</script>
+
+<style scoped>
+.chatArea{
+	width: 100vw;
+	height: 100vh;
+	overflow: hidden;
+}
+
+.ca_iframe{
+	width: 100%;
+	height: 100%;
+}
+</style>

+ 1 - 1
src/components/pages/pocAiClassroom/pocClass.vue

@@ -13,7 +13,7 @@ export default {
       userId: this.$route.query.userid,
       org: this.$route.query.org,
       oid: this.$route.query.oid,
-			src:"https://beta.cloud.cocorobo.cn/aigpt/#/js?active_role=0"
+			src:"https://beta.cloud.cocorobo.cn/aigpt/#/js?active_role=3"
     };
   },
   methods: {

+ 1 - 1
src/router/index.js

@@ -133,7 +133,7 @@ import testExamine from '@/components/pages/test/examine'
 import testPersonExamine from '@/components/pages/testPerson/examine'
 import csTest from '@/components/pages/csTest'
 import pocAiClassroom from '@/components/pages/pocAiClassroom'
-import pocAiChat from '@/components/pages/pocAiClassroom/chatArea'
+import pocAiChat from '@/components/pages/pocAiClassroom/chatArea2'
 import pocDoTask from '@/components/pages/pocAiClassroom/doTask'
 import pocClass from '@/components/pages/pocAiClassroom/pocClass'
 // 全局修改默认配置,点击空白处不能关闭弹窗