lushixing 4 months ago
parent
commit
6ae1d30887
2 changed files with 10 additions and 3 deletions
  1. 1 1
      public/pdfJS/web/viewer.html
  2. 9 2
      src/views/search.vue

+ 1 - 1
public/pdfJS/web/viewer.html

@@ -31,7 +31,7 @@ See https://github.com/adobe-type-tools/cmap-resources
 <link rel="resource" type="application/l10n" href="locale/locale.properties">
 <script src="../build/pdf.js"></script>
 
-    <link rel="stylesheet" href="viewer.css">
+    <link rel="stylesheet" href="viewer.css?99">
 
   <script src="viewer.js"></script>
   </head>

+ 9 - 2
src/views/search.vue

@@ -248,7 +248,7 @@ const closePreview = () => {
                   class="items-img"
                 >GOELIA</span>
                 <div class="items-info">
-                  <h2>{{ acc.file_name }}</h2>
+                  <h2 v-html="acc.file_name"></h2>
                   <p
                     v-if="acc.match_text"
                     class="desc"
@@ -302,7 +302,10 @@ const closePreview = () => {
           <path d="M 7.75 1.34375 L 6.25 2.65625 L 14.65625 12 L 6.25 21.34375 L 7.75 22.65625 L 16.75 12.65625 L 17.34375 12 L 16.75 11.34375 Z" />
         </svg></span>
         <div class="title-black">
-          <span class="title">{{ iframeTitle }}</span>
+          <span
+            class="title"
+            v-html="iframeTitle"
+          ></span>
           <span class="subtitle">文件预览</span>
         </div>
       </div>
@@ -490,6 +493,10 @@ const closePreview = () => {
           white-space: nowrap;
           overflow: hidden;
           text-overflow: ellipsis;
+          b {
+            font-weight: normal;
+            color: #079D55;
+          }
         }
         .items-info-content {
           display: flex;