Browse Source

feat: 限制公告类型

zhangyuhan 1 month ago
parent
commit
ab2884090f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data/data-models/modules/article/model/content.js

+ 2 - 1
data/data-models/modules/article/model/content.js

@@ -144,7 +144,8 @@ class ContentModel extends BaseModel {
     }
 
     // 插入画像引流关键词
-    if (content && baseInfo) {
+    const canType = ['招标', '采购意向', '预告']
+    if (content && canType.includes(baseInfo.topType)) {
       for (const guideKey in this._highlightGuideKeyMaps) {
         const guideKeyItem = this._highlightGuideKeyMaps[guideKey]
         if (Array.isArray(guideKeyItem?.keys)) {