From d01ec9d4502c299414b5f5aef8bfd0a7a2d26455 Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 25 May 2024 16:50:27 +0800 Subject: [PATCH 1/3] style: remove log --- src/components/ShowFile/ShowFile.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 1fbe119..b51ca9d 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -4061,7 +4061,6 @@ export default { if (row.isFolder) { url = fileConfig.packageDownloadUrl(row.id, row.name + '.zip') } - console.log('url', url) let clipboard = new Clipboard('.newFileMenu', { text: function() { return url From 153e5592e4a727330c8a822268b5511cc3f2dac5 Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 25 May 2024 17:22:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=A4=A7=E5=B0=8F=E5=8F=98=E5=8C=96=E6=97=B6=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E8=B0=83=E6=95=B4=E5=88=86=E9=A1=B5=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index b51ca9d..f7e795d 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1546,8 +1546,12 @@ export default { let gridRowNum = Math.round( this.clientHeight / (clientWidth / this.gridColumnNum) ) - this.pagination.pageSize = - gridRowNum * this.gridColumnNum + this.gridColumnNum + const lastPageSize = this.pagination.pageSize + const thisPageSize = gridRowNum * this.gridColumnNum + this.gridColumnNum + if (thisPageSize !== lastPageSize) { + this.pagination.pageSize = thisPageSize + this.getFileList() + } // 使列表可拖拽 this.rowDrop() From 1c7a7273ff7b0725065d58a7f1ad37236931dca6 Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 25 May 2024 23:19:05 +0800 Subject: [PATCH 3/3] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E2=80=9C?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=88=86=E4=BA=AB=E2=80=9D=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShareDialog/index.vue | 4 ++++ src/views/share/index.vue | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/ShareDialog/index.vue b/src/components/ShareDialog/index.vue index 04e7ea0..7820ac3 100644 --- a/src/components/ShareDialog/index.vue +++ b/src/components/ShareDialog/index.vue @@ -302,6 +302,9 @@ export default { }, // 切换分享形式 shareFormChange() { + if (!this.shareOption.isPrivacy) { + this.shareOption.operationPermissionList = [] + } this.createShare('shareFormChange') }, // 取消分享 @@ -469,6 +472,7 @@ export default { .share-filename { margin: 25px 0 50px 0; text-align: center; + word-break: break-word; } .share-option { diff --git a/src/views/share/index.vue b/src/views/share/index.vue index 0352166..2b4fb8b 100644 --- a/src/views/share/index.vue +++ b/src/views/share/index.vue @@ -1,6 +1,6 @@