|
|
@@ -218,14 +218,14 @@
|
|
|
const base = localStorage.getItem('fileBrowseEnvironmentExtranet') || ''
|
|
|
if (item.materialType === 1) {
|
|
|
this.$set(this, 'officeType', 'video')
|
|
|
- this.$set(this, 'lookUrl', base + '/' + item.attachmentPath)
|
|
|
+ this.$set(this, 'lookUrl', base + item.attachmentPath)
|
|
|
this.$nextTick(() => { this.initVideoPlayer(this.lookUrl) })
|
|
|
} else if (item.materialType === 3) {
|
|
|
let ext = item.attachmentType
|
|
|
if (ext === '.docx') this.$set(this, 'officeType', 'docx')
|
|
|
else if (ext === '.xlsx') this.$set(this, 'officeType', 'excel')
|
|
|
else if (ext === '.pdf') this.$set(this, 'officeType', 'pdf')
|
|
|
- this.$set(this, 'lookUrl', base + '/' + item.attachmentPath)
|
|
|
+ this.$set(this, 'lookUrl', base + item.attachmentPath)
|
|
|
} else if (item.materialType === 4) {
|
|
|
this.$set(this, 'officeType', 'text')
|
|
|
this.$set(this, 'lookUrl', item.articleContent)
|