优化文档搜索高亮词渲染逻辑

This commit is contained in:
yangjian 2023-02-03 21:37:44 +08:00
parent 1f81f60bfa
commit e7cf4eadbc

View File

@ -449,7 +449,9 @@
});
// 高亮搜索词
{% if doc.editor_mode != 2 %}
keyLight('doc-content',getQueryVariable("highlight"))
setTimeout(function(){
keyLight('doc-content',getQueryVariable("highlight"))
},1000)
{% endif %}
</script>
</body>