From 74b03dac4f47f1fb3f349a40891edafff2ecdf44 Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 18 Jul 2025 17:31:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20remove=20'=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E5=A4=A7=E5=B0=8F'=20option=20from?= =?UTF-8?q?=20view=20mode=20across=20multiple=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/home-index.scss | 2 +- src/views/favorite/index.vue | 1 - src/views/fileType/audio.vue | 1 - src/views/fileType/document.vue | 1 - src/views/fileType/image.vue | 1 - src/views/fileType/video.vue | 1 - src/views/home/index.vue | 1 - src/views/home/mobile/index.vue | 1 - src/views/mount/index.vue | 1 - src/views/public/share/shareList.vue | 2 -- src/views/recently/index.vue | 1 - src/views/tag/index.vue | 1 - src/views/trash/index.vue | 1 - 13 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/styles/home-index.scss b/src/styles/home-index.scss index 98d4e27..48cac91 100644 --- a/src/styles/home-index.scss +++ b/src/styles/home-index.scss @@ -191,7 +191,7 @@ color: #19ACF9 } -.search-class{ +>>> .search-class{ float: right; display: flex; justify-content: flex-end; diff --git a/src/views/favorite/index.vue b/src/views/favorite/index.vue index 89d8bbb..3c64562 100644 --- a/src/views/favorite/index.vue +++ b/src/views/favorite/index.vue @@ -33,7 +33,6 @@ { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/fileType/audio.vue b/src/views/fileType/audio.vue index 69efe44..5846a05 100644 --- a/src/views/fileType/audio.vue +++ b/src/views/fileType/audio.vue @@ -33,7 +33,6 @@ export default { { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/fileType/document.vue b/src/views/fileType/document.vue index 346691a..3f0be3f 100644 --- a/src/views/fileType/document.vue +++ b/src/views/fileType/document.vue @@ -33,7 +33,6 @@ export default { { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/fileType/image.vue b/src/views/fileType/image.vue index 1f520e4..dd08c15 100644 --- a/src/views/fileType/image.vue +++ b/src/views/fileType/image.vue @@ -32,7 +32,6 @@ export default { { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/fileType/video.vue b/src/views/fileType/video.vue index 625edcf..f5db228 100644 --- a/src/views/fileType/video.vue +++ b/src/views/fileType/video.vue @@ -33,7 +33,6 @@ export default { { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/home/index.vue b/src/views/home/index.vue index c25d372..394f893 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -25,7 +25,6 @@ export default { { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/home/mobile/index.vue b/src/views/home/mobile/index.vue index c937d86..10704f6 100644 --- a/src/views/home/mobile/index.vue +++ b/src/views/home/mobile/index.vue @@ -905,7 +905,6 @@ export default { pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, folder: this.$route.query.folder, - showFolderSize: localStorage.getItem('showFolderSize') }).then(res => { this.loadData(res, onLoad) this.listModeSearch = true diff --git a/src/views/mount/index.vue b/src/views/mount/index.vue index 9447104..e324a39 100644 --- a/src/views/mount/index.vue +++ b/src/views/mount/index.vue @@ -33,7 +33,6 @@ { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/public/share/shareList.vue b/src/views/public/share/shareList.vue index 43958e3..892311e 100644 --- a/src/views/public/share/shareList.vue +++ b/src/views/public/share/shareList.vue @@ -627,7 +627,6 @@ export default { fileId: fileId, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, - showFolderSize: true }).then(res => { this.isLoading = false this.fileList = res.data @@ -649,7 +648,6 @@ export default { share: this.shortId, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, - showFolderSize: true }).then(res => { this.isLoading = false if (Object.getPrototypeOf(res.data) === String.prototype) { diff --git a/src/views/recently/index.vue b/src/views/recently/index.vue index a6ddea0..9ccc69a 100644 --- a/src/views/recently/index.vue +++ b/src/views/recently/index.vue @@ -31,7 +31,6 @@ { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/tag/index.vue b/src/views/tag/index.vue index bc154f0..515e73c 100644 --- a/src/views/tag/index.vue +++ b/src/views/tag/index.vue @@ -32,7 +32,6 @@ export default { { label: '查看', operation: 'viewMode' ,child: [ { iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'}, { iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'}, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, { label: '排列方式', operation: 'arrangement' ,child: fileArrangements diff --git a/src/views/trash/index.vue b/src/views/trash/index.vue index 1cd3f47..c5afd57 100644 --- a/src/views/trash/index.vue +++ b/src/views/trash/index.vue @@ -36,7 +36,6 @@ export default { label: '查看', operation: 'viewMode', child: [ { iconClass: this.grid ? '' : 'menu-point', label: '列表', operation: 'vmode-list' }, { iconClass: this.grid ? 'menu-point' : '', label: '缩略图', operation: 'vmode-grid' }, - { label: '显示文件夹大小', operation: 'show-folder-size'}, ] }, {