perf: 分享界面显示文件夹大小

This commit is contained in:
jmal 2024-05-24 17:10:48 +08:00
parent c059f912c3
commit 7f580897f7

View File

@ -607,7 +607,8 @@ export default {
share: this.shareId, share: this.shareId,
fileId: fileId, fileId: fileId,
pageIndex: this.pagination.pageIndex, pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize pageSize: this.pagination.pageSize,
showFolderSize: true
}).then(res => { }).then(res => {
this.isLoading = false this.isLoading = false
this.fileList = res.data this.fileList = res.data
@ -628,7 +629,8 @@ export default {
api.accessShare({ api.accessShare({
share: this.shareId, share: this.shareId,
pageIndex: this.pagination.pageIndex, pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize pageSize: this.pagination.pageSize,
showFolderSize: true
}).then(res => { }).then(res => {
this.isLoading = false this.isLoading = false
if (Object.getPrototypeOf(res.data) === String.prototype) { if (Object.getPrototypeOf(res.data) === String.prototype) {