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/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 1fbe119..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() @@ -4061,7 +4065,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 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 @@