Browse Source

Merge branch 'main' into feature/v1.0.53

lianbingjie 1 year ago
parent
commit
aca48e8dd9

+ 4 - 1
apps/bigmember_pc/src/components/article-item/ArticleItem.vue

@@ -414,7 +414,10 @@ export default {
     // 处理关键词在附件中
     calcFileText() {
       const inFile = this.article.filetext_search
-      const keywords = this.getMatchKeys
+      let keywords = this.getMatchKeys
+      if (this.article?.fs_word && this.article?.fs_word[0]) {
+        keywords = this.article?.fs_word
+      }
       if (inFile) {
         const keyword = keywords[0]
         if (keyword?.length > 3) {

+ 10 - 1
apps/mobile/src/ui/project-cell/index.vue

@@ -197,6 +197,12 @@ export default {
         return []
       }
     },
+    fs_keys: {
+      type: Array,
+      default() {
+        return []
+      }
+    },
     /**
      * ['string', 'string']
      * 或者
@@ -341,7 +347,10 @@ export default {
       }
     },
     setKeyLength() {
-      const key = this.keys[0]
+      let key = this.keys[0]
+      if (this.fs_keys && this.fs_keys[0]) {
+        key = this.fs_keys[0]
+      }
       if (key) {
         if (key.length > 3) {
           return key.substring(0, 3) + '...'

+ 1 - 0
apps/mobile/src/views/search/result/bidding/index.vue

@@ -167,6 +167,7 @@
               :title="item.title"
               :detail="filters.scope.includes('content') ? item.detail : null"
               :filetext_search="item.filetext_search"
+              :fs_keys="item.fs_word"
               :time="item.dateTime"
               v-visited:content="item.id"
               :isFile="item.isFile"