feat: There is no way the, LXD
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 工作流文件预览
|
||||
*/
|
||||
import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig'
|
||||
import { processEditFile } from 'api/process'
|
||||
let Base64 = require('js-base64').Base64;
|
||||
export default id => {
|
||||
processEditFile({
|
||||
id
|
||||
}).then(res => {
|
||||
if(res){
|
||||
const editFileInfo = res
|
||||
window.open(kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
|
||||
}
|
||||
}).catch(e => {
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user