Browse Source

修改ppt链接

11wqe1 7 months ago
parent
commit
f0e6529c89
1 changed files with 15 additions and 4 deletions
  1. 15 4
      src/components/pages/pptEasy/addCourse.vue

+ 15 - 4
src/components/pages/pptEasy/addCourse.vue

@@ -2842,10 +2842,21 @@ export default {
     },
     // 动态生成PPT iframe的URL
     pptIframeUrl() {
-      const baseUrl = this.isBetaEnv
-        ? 'https://beta.ppt.cocorobo.cn'
-        : 'https://ppt.cocorobo.cn';
-      return `${baseUrl}/?mode=editor&courseid=${this.cid}`;
+
+      let ppturl = "https://beta.ppt.cocorobo.cn"
+      if (this.lang.lang == 'com') {
+        ppturl = 'https://ppt.cocorobo.com'
+      } else if (this.lang.lang == 'hk') {
+        ppturl = 'https://ppt.cocorobo.hk'
+      } else {
+        ppturl = 'https://ppt.cocorobo.cn'
+      }
+      return `${ppturl}/?mode=editor&courseid=${this.cid}`;
+
+      // const baseUrl = this.isBetaEnv
+      //   ? 'https://beta.ppt.cocorobo.cn'
+      //   : 'https://ppt.cocorobo.cn';
+      // return `${baseUrl}/?mode=editor&courseid=${this.cid}`;
     },
     // 获取已选择的授课班级名称
     selectedGradeName() {