11wqe1 1 week ago
parent
commit
787ee28774
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/components/pages/pptEasy/addCourse.vue

+ 5 - 3
src/components/pages/pptEasy/addCourse.vue

@@ -2843,12 +2843,14 @@ export default {
     // 动态生成PPT iframe的URL
     pptIframeUrl() {
 
-      let ppturl = "https://beta.ppt.cocorobo.cn"
-      if (this.lang.lang == 'com') {
+      let ppturl = ""
+      if (this.isBetaEnv) {
+        ppturl = "https://beta.ppt.cocorobo.cn"
+      } else if (this.lang.lang == 'com') {
         ppturl = 'https://ppt.cocorobo.com'
       } else if (this.lang.lang == 'hk') {
         ppturl = 'https://ppt.cocorobo.hk'
-      } else if (this.lang.lang == 'cn'){
+      } else {
         ppturl = 'https://ppt.cocorobo.cn'
       }
       return `${ppturl}/?mode=editor&courseid=${this.cid}`;