pdf在线预览

This commit is contained in:
xiaoxiaoqiong 2022-04-15 11:39:04 +08:00
parent 5db22de6eb
commit 7d320b0857
1 changed files with 1 additions and 1 deletions

View File

@ -792,7 +792,7 @@ class MemosService
attachments.each do |attach|
attachments_list << {:id => attach.id,
:title => attach.filename,
:url => "/attachments/download/" + "#{attach.id}" + "/" + "#{attach.filename}",
:url => "/attachments/download/" + "#{attach.id}" + "/" + "#{attach.filename}#{attach.is_pdf? ? "?disposition=inline" : ""}",
:filesize => number_to_human_size(attach.filesize,significant: false, precision: 2)}
end
end