Browse Source

fix:修改关键字高亮配置

zqbao 9 months ago
parent
commit
66951022c6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      services/elastic/report.go

+ 2 - 1
services/elastic/report.go

@@ -99,7 +99,8 @@ func SearchReport(keyWord string, classifyIdFirsts []int, classifyIdSeconds []in
 			// 	//	"post_tags": "{{/highlight}}",
 			// },
 		},
-		"pre_tags":  "<span style=\"color:#E3B377\">",
+		// "pre_tags":  "<span style=\"color:#E3B377\">",
+		"pre_tags":  "<span class=\"report-title_color\">",
 		"post_tags": "</span>",
 	}