lsc 2 years ago
parent
commit
d6b379f1b8
1 changed files with 11 additions and 7 deletions
  1. 11 7
      src/components/liveProjectDetail.vue

+ 11 - 7
src/components/liveProjectDetail.vue

@@ -997,9 +997,13 @@ export default {
         ", " +
         "'" +
         (this.ppage - 1) +
+        "'" +
         ", " +
-        "'4'";
-      ")\n" + " });\n" + "}\n" + "document.head.appendChild(_js);\n";
+        "'4'" +
+        ")\n" +
+        " });\n" +
+        "}\n" +
+        "document.head.appendChild(_js);\n";
       iframeHtml.contentWindow.document.head.appendChild(_ajs);
 
       // iframeHtml.contentWindow.jietu_shishi(this.userid, this.cid);
@@ -1142,7 +1146,7 @@ export default {
         .get(this.$store.state.api + "selectPptPage", "")
         .then((res) => {
           if (res.data[0].length > 0) {
-            if (this.ppage == res.data[0][0].page) {
+            if (this.ppage == res.data[0][0].page && this.isBlock !== 0) {
               return;
             } else {
               this.ppage = res.data[0][0].page;
@@ -1173,17 +1177,17 @@ export default {
           const script1 = document.createElement("script");
           script1.type = "text/javascript";
           script1.src =
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/jquery-3.6.0.min.js";
+            "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
           const script2 = document.createElement("script");
           script2.type = "text/javascript";
           script2.src =
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/aws-sdk-2.235.1.min.js";
+            "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
           const script3 = document.createElement("script");
           script3.type = "text/javascript";
-          script3.src = "https://html2canvas.hertzen.com/dist/html2canvas.min.js";
+          script3.src = "https://html2canvas.hertzen.com/dist/js/html2canvas.min.js";
           const script4 = document.createElement("script");
           script4.type = "text/javascript";
-          script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/jietu.js";
+          script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu.js";
 
           if (_this.toolCount == 1) {
             _this.$refs.whiteBoard.onload = () => {