11wqe1 1 tahun lalu
induk
melakukan
c81028c4b5
1 mengubah file dengan 10 tambahan dan 7 penghapusan
  1. 10 7
      src/views/course/components/courseTitle.vue

+ 10 - 7
src/views/course/components/courseTitle.vue

@@ -36,13 +36,13 @@ export default {
   data() {
     return {}
   },
-  watch: {
-    chapInfo(newVal, oldVal) {
-      this.chapInfo.chapterInfo[0].taskJson[this.taskCount].taskDetail = this.chapInfo.chapterInfo[0].taskJson[
-        this.taskCount
-      ].taskDetail.replace(/(<img[^>]+)style="max-width:\s*100%25;"/g, '$1style="max-width:100%;"')
-    }
-  },
+  // watch: {
+  //   // chapInfo(newVal, oldVal) {
+  //   //   this.chapInfo.chapterInfo[0].taskJson[this.taskCount].taskDetail = this.chapInfo.chapterInfo[0].taskJson[
+  //   //     this.taskCount
+  //   //   ].taskDetail.replace(/(<img[^>]+)style="max-width:\s*100%25;"/g, '$1style="max-width:100%;"')
+  //   // }
+  // },
   mounted() {
     // let con = this.chapInfo
   }
@@ -109,6 +109,9 @@ export default {
     word-break: break-all;
     margin: 0.3rem 0 0;
     font-size: 14px;
+    img{
+      width: 100%;
+    }
     p {
       margin: 0;
     }