Commit 2f94e54a authored by mhw's avatar mhw

添加特殊标签展示详情内容

parent c54554bf
......@@ -58,7 +58,7 @@ export default {
let tagUrl = aTag.getAttribute('href')
let isFile = ['pdf', 'jpg', 'gif', 'jpeg', 'png', 'docx', 'doc', 'xlsx', 'xls', 'mp4', 'webm', 'ogg', 'ogv', 'txt'].indexOf(tagUrl.split('.').pop().toLowerCase()) !== -1
let isFile2 = ['html', 'md', 'json', 'jsonl', 'csv', 'pdf', 'png', 'jpg', 'jpeg', 'bmp', 'eml', 'msg', 'epub', 'xlsx', 'xlsd', 'ipynb', 'odt', 'py', 'rst', 'rtf', 'srt', 'toml', 'tsv', 'docx', 'doc', 'xml', 'ppt', 'pptx', 'txt', 'htm']
if (isFile2) { // 判断知识库以及文件对话 的文件类型,并添加dom以及样式
if (isFile2 || aTag.id === 'show_detail') { // 判断知识库以及文件对话 的文件类型,并添加dom以及样式
this.setDescribeStyle(aTag)
}
aTag.addEventListener('click', function (event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment