Browse Source

修改录音使用网址

11wqe1 1 month ago
parent
commit
cc938f8f1b

+ 10 - 1
src/components/EnglishVoice2/component/right.vue

@@ -71,7 +71,7 @@
       </div>
       </div>
     </div>
     </div>
     <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;"
     <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html" ref="iiframe" v-show="false"></iframe>
+      :src="iframeSrc" ref="iiframe" v-show="false"></iframe>
   </div>
   </div>
 </template>
 </template>
 
 
@@ -158,6 +158,15 @@ export default {
       }
       }
       return time;
       return time;
     },
     },
+    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`;
+      }
+    },
   },
   },
   watch: {
   watch: {
     checkType: {
     checkType: {

+ 10 - 1
src/components/EnglishVoice3/component/right.vue

@@ -71,7 +71,7 @@
       </div>
       </div>
     </div>
     </div>
     <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;"
     <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html" ref="iiframe" v-show="false"></iframe>
+      :src="iframeSrc" ref="iiframe" v-show="false"></iframe>
   </div>
   </div>
 </template>
 </template>
 
 
@@ -158,6 +158,15 @@ export default {
       }
       }
       return time;
       return time;
     },
     },
+    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`;
+      }
+    },
   },
   },
   watch: {
   watch: {
     checkType: {
     checkType: {

+ 20 - 2
src/components/classRoomHelper/component/dialogArea.vue

@@ -367,7 +367,7 @@
     </div>
     </div>
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeSrc"
       ref="iiframe"
       ref="iiframe"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -375,7 +375,7 @@
 		 <!-- 文字转语音-->
 		 <!-- 文字转语音-->
 		 <iframe
 		 <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index1.html"
+      :src="iframeSrc1"
       ref="iiframe2"
       ref="iiframe2"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -445,6 +445,24 @@ export default {
     };
     };
   },
   },
   computed: {
   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`;
+      }
+    },
+    iframeSrc1() {
+      if(this.$region == 'hk') {
+        return `https://cloud.cocorobo.hk/browser/public/index1.html`;
+      } else if(this.$region == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index1.html`;
+      } else {
+        return `https://beta.cloud.cocorobo.cn/browser/public/index1.html`;
+      }
+    },
     pan() {
     pan() {
       return content => {
       return content => {
         try {
         try {

+ 20 - 2
src/components/classRoomHelper/component/languageAssistant.vue

@@ -155,7 +155,7 @@
     <!-- 录音转文字 -->
     <!-- 录音转文字 -->
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeSrc"
       ref="iiframe"
       ref="iiframe"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -163,7 +163,7 @@
     <!-- 文字转语音-->
     <!-- 文字转语音-->
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index1.html"
+      :src="iframeSrc1"
       ref="iiframe2"
       ref="iiframe2"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -200,6 +200,24 @@ export default {
     };
     };
   },
   },
   computed: {
   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`;
+      }
+    },
+    iframeSrc1() {
+      if(this.$region == 'hk') {
+        return `https://cloud.cocorobo.hk/browser/public/index1.html`;
+      } else if(this.$region == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index1.html`;
+      } else {
+        return `https://beta.cloud.cocorobo.cn/browser/public/index1.html`;
+      }
+    },
     htmlContent() {
     htmlContent() {
       const md = new MarkdownIt();
       const md = new MarkdownIt();
       return _md => {
       return _md => {

+ 20 - 2
src/components/classRoomHelper/component/levitatedSphere.vue

@@ -40,7 +40,7 @@
     <!-- 录音转文字 -->
     <!-- 录音转文字 -->
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeSrc"
       ref="iiframe"
       ref="iiframe"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -48,7 +48,7 @@
     <!-- 文字转语音-->
     <!-- 文字转语音-->
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index1.html"
+      :src="iframeSrc1"
       ref="iiframe2"
       ref="iiframe2"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -88,6 +88,24 @@ export default {
     };
     };
   },
   },
   computed: {
   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`;
+      }
+    },
+    iframeSrc1() {
+      if(this.$region == 'hk') {
+        return `https://cloud.cocorobo.hk/browser/public/index1.html`;
+      } else if(this.$region == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index1.html`;
+      } else {
+        return `https://beta.cloud.cocorobo.cn/browser/public/index1.html`;
+      }
+    },
     htmlContent() {
     htmlContent() {
       const md = new MarkdownIt();
       const md = new MarkdownIt();
       return _md => {
       return _md => {

+ 20 - 2
src/components/classRoomHelper/component/searchArea.vue

@@ -1382,7 +1382,7 @@
     </div>
     </div>
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeSrc"
       ref="iiframe"
       ref="iiframe"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -1390,7 +1390,7 @@
     <!-- 文字转语音-->
     <!-- 文字转语音-->
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index1.html"
+      :src="iframeSrc1"
       ref="iiframe2"
       ref="iiframe2"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -1530,6 +1530,24 @@ export default {
     };
     };
   },
   },
   computed: {
   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`;
+      }
+    },
+    iframeSrc1() {
+      if(this.$region == 'hk') {
+        return `https://cloud.cocorobo.hk/browser/public/index1.html`;
+      } else if(this.$region == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index1.html`;
+      } else {
+        return `https://beta.cloud.cocorobo.cn/browser/public/index1.html`;
+      }
+    },
     internationalizedToolsList() {
     internationalizedToolsList() {
       return {
       return {
         58: this.lang.ssToolSimulationDriving,
         58: this.lang.ssToolSimulationDriving,

+ 20 - 2
src/components/classRoomHelper/component/taskArea.vue

@@ -390,7 +390,7 @@
 
 
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeSrc"
       ref="iiframe"
       ref="iiframe"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -398,7 +398,7 @@
     <!-- 文字转语音-->
     <!-- 文字转语音-->
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index1.html"
+      :src="iframeSrc1"
       ref="iiframe2"
       ref="iiframe2"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -530,6 +530,24 @@ export default {
     };
     };
   },
   },
   computed: {
   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`;
+      }
+    },
+    iframeSrc1() {
+      if(this.$region == 'hk') {
+        return `https://cloud.cocorobo.hk/browser/public/index1.html`;
+      } else if(this.$region == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index1.html`;
+      } else {
+        return `https://beta.cloud.cocorobo.cn/browser/public/index1.html`;
+      }
+    },
     isWorkAll() {
     isWorkAll() {
       let _userList = [];
       let _userList = [];
       if (this.worksStudent.length) {
       if (this.worksStudent.length) {

+ 10 - 1
src/components/components/intelligentAnalysis/checkAi/aiLeader.vue

@@ -348,7 +348,7 @@
     </div>
     </div>
     <iframe
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeSrc"
       ref="iiframe"
       ref="iiframe"
       v-show="false"
       v-show="false"
     ></iframe>
     ></iframe>
@@ -1869,6 +1869,15 @@ ${_eChartsMsg}
     }
     }
   },
   },
   computed: {
   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`;
+      }
+    },
     localFormList() {
     localFormList() {
       // 在 computed 属性中返回一个新的数组,而不是直接修改 prop
       // 在 computed 属性中返回一个新的数组,而不是直接修改 prop
       let localFormList = [...this.formList];
       let localFormList = [...this.formList];