mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-09-20 15:35:55 +08:00
officePreviewUrl
This commit is contained in:
parent
224dabed71
commit
58e653635d
|
@ -182,8 +182,7 @@ class RbPreview extends React.Component {
|
|||
const fileName = $fileCutName(currentUrl)
|
||||
if (this._isDoc(fileName)) {
|
||||
const setPreviewUrl = function (url) {
|
||||
// const previewUrl = rb.commercial < 10 ? `https://view.officeapps.live.com/op/embed.aspx?src=${$encode(url)}` : `${rb.baseUrl}/filex/access/pdf-preview?src=${$encode(url)}`
|
||||
const previewUrl = `https://view.officeapps.live.com/op/embed.aspx?src=${$encode(url)}`
|
||||
const previewUrl = (window.officePreviewUrl || 'https://view.officeapps.live.com/op/embed.aspx?src=') + $encode(url)
|
||||
that.setState({ previewUrl: previewUrl, errorMsg: null })
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue