perf: 显示文件夹大小的选项
This commit is contained in:
parent
abcbe39d4f
commit
00d0d82912
@ -2594,7 +2594,7 @@ export default {
|
|||||||
child[1].iconClass = 'menu-empty'
|
child[1].iconClass = 'menu-empty'
|
||||||
}
|
}
|
||||||
if (child[2]) {
|
if (child[2]) {
|
||||||
if (localStorage.getItem('showFolderSize') === 'true') {
|
if (localStorage.getItem('showFolderSize') === '1') {
|
||||||
child[2].iconClass = 'duigou'
|
child[2].iconClass = 'duigou'
|
||||||
} else {
|
} else {
|
||||||
child[2].iconClass = 'menu-empty'
|
child[2].iconClass = 'menu-empty'
|
||||||
@ -3413,7 +3413,11 @@ export default {
|
|||||||
break
|
break
|
||||||
case 'show-folder-size':
|
case 'show-folder-size':
|
||||||
const showFolderSize = localStorage.getItem('showFolderSize')
|
const showFolderSize = localStorage.getItem('showFolderSize')
|
||||||
localStorage.setItem('showFolderSize', showFolderSize ? false : true)
|
if (showFolderSize === '1') {
|
||||||
|
localStorage.setItem('showFolderSize', '0')
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('showFolderSize', '1')
|
||||||
|
}
|
||||||
this.getFileList()
|
this.getFileList()
|
||||||
break
|
break
|
||||||
case 'orderName':
|
case 'orderName':
|
||||||
|
|||||||
@ -34,7 +34,8 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '查看', operation: 'viewMode', child: [
|
label: '查看', operation: 'viewMode', child: [
|
||||||
{ iconClass: this.grid ? '' : 'menu-point', label: '列表', operation: 'vmode-list' },
|
{ iconClass: this.grid ? '' : 'menu-point', label: '列表', operation: 'vmode-list' },
|
||||||
{ iconClass: this.grid ? 'menu-point' : '', label: '缩略图', operation: 'vmode-grid' }
|
{ iconClass: this.grid ? 'menu-point' : '', label: '缩略图', operation: 'vmode-grid' },
|
||||||
|
{ label: '显示文件夹大小', operation: 'show-folder-size'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user