|
@@ -190,7 +190,7 @@
|
|
|
this.$set(this, 'videoError', false)
|
|
this.$set(this, 'videoError', false)
|
|
|
if (data.materialType === 1) {
|
|
if (data.materialType === 1) {
|
|
|
this.$set(this, 'officeType', 'video')
|
|
this.$set(this, 'officeType', 'video')
|
|
|
- this.$set(this, 'lookUrl', localStorage.getItem('fileBrowseEnvironment')+'/'+data.attachmentPath)
|
|
|
|
|
|
|
+ this.$set(this, 'lookUrl', localStorage.getItem('fileBrowseEnvironmentExtranet')+'/'+data.attachmentPath)
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.initVideoPlayer(this.lookUrl)
|
|
this.initVideoPlayer(this.lookUrl)
|
|
|
})
|
|
})
|
|
@@ -203,10 +203,10 @@
|
|
|
} else if (ext === '.pdf') {
|
|
} else if (ext === '.pdf') {
|
|
|
this.$set(this, 'officeType', 'pdf')
|
|
this.$set(this, 'officeType', 'pdf')
|
|
|
}
|
|
}
|
|
|
- this.$set(this, 'lookUrl', localStorage.getItem('fileBrowseEnvironment')+'/'+data.attachmentPath)
|
|
|
|
|
|
|
+ this.$set(this, 'lookUrl', localStorage.getItem('fileBrowseEnvironmentExtranet')+'/'+data.attachmentPath)
|
|
|
} else if (data.materialType === 4) {
|
|
} else if (data.materialType === 4) {
|
|
|
this.$set(this, 'officeType', 'text')
|
|
this.$set(this, 'officeType', 'text')
|
|
|
- this.$set(this, 'lookUrl', localStorage.getItem('fileBrowseEnvironment')+'/'+data.articleContent)
|
|
|
|
|
|
|
+ this.$set(this, 'lookUrl', localStorage.getItem('fileBrowseEnvironmentExtranet')+'/'+data.articleContent)
|
|
|
}
|
|
}
|
|
|
// 更新学习状态为"学习中"
|
|
// 更新学习状态为"学习中"
|
|
|
if (this.learnStatus === 0) {
|
|
if (this.learnStatus === 0) {
|