修改:文档中图片地址改为完整的地址
This commit is contained in:
parent
f923229836
commit
c0ac9ccfe6
@ -459,7 +459,7 @@
|
||||
if(file.contentType.indexOf('video') > -1){
|
||||
return 'video'
|
||||
}
|
||||
if(file.contentType.indexOf('image') > -1){
|
||||
if(file.contentType.contentType.startsWith('image')){
|
||||
return 'image'
|
||||
}
|
||||
if(file.contentType.indexOf('audio') > -1){
|
||||
|
||||
@ -156,7 +156,7 @@ export default {
|
||||
this.fileList = fileList
|
||||
},
|
||||
format(filepath){
|
||||
this.currentValue = window.location.origin + fileConfig.mardownPreviewUrl(filepath)
|
||||
this.currentValue = fileConfig.mardownPreviewUrl(filepath)
|
||||
this.change(this.currentValue)
|
||||
},
|
||||
// url转blob
|
||||
|
||||
@ -7,7 +7,7 @@ export default {
|
||||
return `${this.baseUrl}/file/${username}${file.path}${file.name}`
|
||||
},
|
||||
mardownPreviewUrl: function (path){
|
||||
return `${this.baseUrl}${path}`
|
||||
return window.location.origin + `${this.baseUrl}${path}`
|
||||
},
|
||||
publicPreviewUrl: function(fileIds) {
|
||||
return `${this.baseUrl}/public/preview/${fileIds}`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user