natasha 2 veckor sedan
förälder
incheckning
85226e5da6
1 ändrade filer med 20 tillägg och 11 borttagningar
  1. 20 11
      src/views/bookShelf/components/PrintModel.vue

+ 20 - 11
src/views/bookShelf/components/PrintModel.vue

@@ -1114,9 +1114,10 @@ export default {
       let explainNumber = 1;
       let resArr = [];
       let articleInfo = JSON.parse(JSON.stringify(this.articleInfo));
-      this.sentenceList = articleInfo.art_corpus_data
-        ? articleInfo.art_corpus_data.sentList
-        : [];
+      this.sentenceList =
+        articleInfo.art_corpus_data && articleInfo.art_corpus_data.sentList
+          ? articleInfo.art_corpus_data.sentList
+          : [];
       this.longSentIds =
         articleInfo.art_corpus_data && articleInfo.art_corpus_data.artStatInfo
           ? articleInfo.art_corpus_data.artStatInfo.longSentIds
@@ -1156,10 +1157,11 @@ export default {
         item.type = "explain";
       });
       this.allWordList = this.wordLit.concat(this.phraseList);
-      let leg =
-        articleInfo.art_corpus_data.sentList[
-          articleInfo.art_corpus_data.sentList.length - 1
-        ].pno;
+      let leg = articleInfo.art_corpus_data
+        ? articleInfo.art_corpus_data.sentList[
+            articleInfo.art_corpus_data.sentList.length - 1
+          ].pno
+        : 0;
       this.sentenceList.forEach((item, index) => {
         let flag = "";
         item.StyleTokens = [];
@@ -1448,9 +1450,12 @@ export default {
               });
               let allWordList = wordLit.concat(phraseList);
               let leg =
-                articleInfo.art_corpus_data.sentList[
-                  articleInfo.art_corpus_data.sentList.length - 1
-                ].pno;
+                articleInfo.art_corpus_data &&
+                articleInfo.art_corpus_data.sentList
+                  ? articleInfo.art_corpus_data.sentList[
+                      articleInfo.art_corpus_data.sentList.length - 1
+                    ].pno
+                  : 0;
               sentenceList.forEach((item, index) => {
                 let flag = "";
                 item.StyleTokens = [];
@@ -2110,7 +2115,8 @@ export default {
   margin: 24px 0 0 0;
   background-color: #f2f3f5;
 }
-#showWaterMark {
+#showWaterMark,
+#showWaterMarks {
   overflow: hidden;
   position: relative;
   z-index: 9999;
@@ -2170,6 +2176,9 @@ export default {
     margin: 30px 30px 60px 30px;
   }
 }
+:deep .image img {
+  max-width: 100%;
+}
 </style>
 <style lang="scss">
 .item-page {