From f398f7803986b1ad2b2c2a9e0a614196d4fe7ff4 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 27 Mar 2024 10:46:04 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=9A=84=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/preview/VideoPreview.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/preview/VideoPreview.vue b/src/components/preview/VideoPreview.vue index 57a164f..2937a0c 100644 --- a/src/components/preview/VideoPreview.vue +++ b/src/components/preview/VideoPreview.vue @@ -132,7 +132,8 @@ export default { if (this.file.m3u8) { videoUrl = `${fileConfig.baseUrl}/video/hls/${this.file.m3u8}` if (this.shareId) { - videoUrl = `${fileConfig.baseUrl}/public/video/hls/${this.file.m3u8}` + const shareToken = this.$store.getters.shareToken ? this.$store.getters.shareToken : 'token' + videoUrl = `${fileConfig.baseUrl}/public/video/hls/${window.shareId}/${shareToken}/${this.file.m3u8}` } } this.option.url = videoUrl @@ -187,8 +188,7 @@ export default { iina.href = `iina://weblink?url=${this.videoLink}` // nplayer const nplayer = doc.querySelector('[data-index="2"]').querySelector('a'); - const link = `nplayer-${this.videoLink}` - nplayer.href = link + nplayer.href = `nplayer-${this.videoLink}` // infuse const infuse = doc.querySelector('[data-index="3"]').querySelector('a'); infuse.href = `infuse://x-callback-url/play?url=${this.videoLink}`