dedsudiyu 4 days ago
parent
commit
184972f8dc

+ 1 - 1
src/components/voiceBroadcast/voiceBroadcast.vue

@@ -233,7 +233,7 @@
             formData.append("file", file);
             formData.append("file", file);
             formData.append("ifAsy", false);
             formData.append("ifAsy", false);
             systemFileUpload(formData).then(response => {
             systemFileUpload(formData).then(response => {
-              let url = localStorage.getItem('fileBrowseEnvironmentExtranet') + '/' + response.data.url;
+              let url = localStorage.getItem('fileBrowseEnvironmentExtranet')+ response.data.url;
               self.iotAppSpeakerPlayVoice(url);
               self.iotAppSpeakerPlayVoice(url);
             });
             });
           })
           })

+ 2 - 2
src/views/learning/learningCourse.vue

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

+ 3 - 3
src/views/learning/learningMaterials.vue

@@ -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('fileBrowseEnvironmentExtranet')+'/'+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('fileBrowseEnvironmentExtranet')+'/'+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('fileBrowseEnvironmentExtranet')+'/'+data.articleContent)
+          this.$set(this, 'lookUrl', localStorage.getItem('fileBrowseEnvironmentExtranet')+data.articleContent)
         }
         }
         // 更新学习状态为"学习中"
         // 更新学习状态为"学习中"
         if (this.learnStatus === 0) {
         if (this.learnStatus === 0) {