修复文件预览的问题

master
toesbieya 6 years ago
parent c007fe5fd6
commit 1ad33332f5
  1. 3
      vue/src/utils/file.js

@ -14,8 +14,7 @@ const defaultOptions = {
//文件预览
export function preview(url) {
const connectChar = url.includes('?') ? '&' : '?'
url = url + connectChar + 'fullfilename=' + url.replace(attachmentPrefix, '')
url = `${url}&fullfilename=${url.replace(attachmentPrefix, '')}`
const anchor = document.createElement('a')
anchor.style.visibility = 'hidden'
anchor.href = `${filePreviewPrefix}/onlinePreview?url=${encodeURIComponent(url)}`

Loading…
Cancel
Save