前端的修复及文件下载后缀的扩展
This commit is contained in:
parent
48f8ce5581
commit
7bf539546c
|
@ -5,7 +5,7 @@ module RepositoriesHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def download_type(str)
|
def download_type(str)
|
||||||
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe)
|
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb)
|
||||||
default_type.include?(str)
|
default_type.include?(str)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue