From 1a2de994374281ab008b0d0e665fb2ec6ca88cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Fri, 6 Mar 2026 17:33:11 +0800 Subject: [PATCH 1/9] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E5=90=89=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84?= =?UTF-8?q?=E9=9C=80=E6=B1=82=5Ffix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/image-preview/preview-detail.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/image-preview/preview-detail.vue b/src/components/image-preview/preview-detail.vue index d3bebe39..671fd558 100644 --- a/src/components/image-preview/preview-detail.vue +++ b/src/components/image-preview/preview-detail.vue @@ -2,7 +2,11 @@ + :src="fileUrlShow" + :header="{ + summary: token + }" + :controls="true" @error="playError" @ended="playEnded" object-fit="contain"> @@ -98,6 +102,9 @@ isBase() { return this.storageStore?.getIsBase }, + token() { + return getToken() + } }, watch: { fileId: { @@ -140,7 +147,7 @@ } if (this.fileType === 'video') { if (newval.indexOf('http') === 0) { - this.fileUrlShow = newval + '?tk=' + getToken() + this.fileUrlShow = newval // + '?tk=' + getToken() } else { if (newval && this.watching) { this.getPreviewUrlBlob(newval); @@ -227,7 +234,7 @@ if (this.fileId) { let _newDate = new Date().getTime() if (this.fileId.indexOf('http') === 0) { - this.fileUrlShow = this.fileId + '?tk=' + getToken() + '&t=' + _newDate + this.fileUrlShow = this.fileId // + '?tk=' + getToken() + '&t=' + _newDate } else { this.getPreviewUrlBlob(this.fileId); } @@ -257,7 +264,7 @@ return } let _newDate = new Date().getTime() - this.fileUrlShow = getPreviewFileUrl(this.fileId) + '?tk=' + getToken() + '&t=' + _newDate + this.fileUrlShow = getPreviewFileUrl(this.fileId) // + '?tk=' + getToken() + '&t=' + _newDate // downloadFile(id).then(res=>{ // this.fileUrlShow = res.tempFilePath // this.storageStore.setStorage('video', id, this.fileUrlShow) From cf8961800f45f82477ed99649588011f3bfa4997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Fri, 6 Mar 2026 17:40:58 +0800 Subject: [PATCH 2/9] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/comment-input/comment-input.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/comment-input/comment-input.vue b/src/components/comment-input/comment-input.vue index d5f11677..8835d833 100644 --- a/src/components/comment-input/comment-input.vue +++ b/src/components/comment-input/comment-input.vue @@ -222,7 +222,7 @@ // 方法 const uploadNow = (limit = 4) => { - if(!isImg.value){ + if(!isImg.value || fileList.value === 0){ upload(limit) }else{ common.show('','是否清空当前表情并重新添加?').then((res) => { From 7d52db7a9ca32ce02118d8a98488ff7598805f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Fri, 6 Mar 2026 17:42:51 +0800 Subject: [PATCH 3/9] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E5=90=89=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84?= =?UTF-8?q?=E9=9C=80=E6=B1=82=5Ffix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/comment-input/comment-input.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/comment-input/comment-input.vue b/src/components/comment-input/comment-input.vue index 8835d833..556c00b8 100644 --- a/src/components/comment-input/comment-input.vue +++ b/src/components/comment-input/comment-input.vue @@ -222,7 +222,7 @@ // 方法 const uploadNow = (limit = 4) => { - if(!isImg.value || fileList.value === 0){ + if(isImg.value || fileList.value === 0){ upload(limit) }else{ common.show('','是否清空当前表情并重新添加?').then((res) => { From 341595d61a034db6167eaa385765559e30f2b2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 9 Mar 2026 08:51:50 +0800 Subject: [PATCH 4/9] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E5=90=89=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84?= =?UTF-8?q?=E9=9C=80=E6=B1=82=5Ffix=EF=BC=9A=E6=B5=8B=E8=AF=95=E8=A7=86?= =?UTF-8?q?=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/image-preview/i-video.vue | 86 +++++++++++++++++++ .../image-preview/preview-detail.vue | 17 +++- 2 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 src/components/image-preview/i-video.vue diff --git a/src/components/image-preview/i-video.vue b/src/components/image-preview/i-video.vue new file mode 100644 index 00000000..bc446497 --- /dev/null +++ b/src/components/image-preview/i-video.vue @@ -0,0 +1,86 @@ + + + diff --git a/src/components/image-preview/preview-detail.vue b/src/components/image-preview/preview-detail.vue index 671fd558..36ebdf4f 100644 --- a/src/components/image-preview/preview-detail.vue +++ b/src/components/image-preview/preview-detail.vue @@ -1,12 +1,15 @@