perf: 优化点击上传列表效果

This commit is contained in:
kuaifan 2025-02-14 15:06:17 +08:00
parent 8ed9186ff4
commit a6fac96ec1

View File

@ -1043,15 +1043,15 @@ export default {
}, },
browseFolder(id, shakeId = null) { browseFolder(id, shakeId = null) {
if (id > 0) {
if (this.pid == id && this.fid == 0 && shakeId) { if (this.pid == id && this.fid == 0 && shakeId) {
this.shakeFile(shakeId); this.shakeFile(shakeId);
return; return;
} }
if (id > 0) {
this.goForward({name: 'manage-file', params: {folderId: id, fileId: null, shakeId}}); this.goForward({name: 'manage-file', params: {folderId: id, fileId: null, shakeId}});
} else { } else {
this.searchKey = ''; this.searchKey = '';
this.goForward({name: 'manage-file'}); this.goForward({name: 'manage-file', params: {folderId: null, fileId: null, shakeId}});
} }
}, },