Browse Source

ppt录制

11wqe1 1 month ago
parent
commit
a95e618f44
1 changed files with 12 additions and 1 deletions
  1. 12 1
      src/components/pptEasyClass/index.vue

+ 12 - 1
src/components/pptEasyClass/index.vue

@@ -4,7 +4,7 @@
       <!-- 录音转文字 -->
       <iframe
         allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-        src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+        :src="iframeSrc"
         ref="iiframe"
         v-show="false"
       ></iframe>
@@ -163,6 +163,17 @@ export default {
       recordingEndTime: "", // 结束录音时间
     };
   },
+  computed: {
+    iframeSrc() {
+      if(this.$region == 'hk') {
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      } else if(this.$region == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      } else {
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    }
+  },
   methods: {
     goTo(path) {
       this.$router.push(path);