mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
perf: 优化点击上传列表效果
This commit is contained in:
parent
8ed9186ff4
commit
a6fac96ec1
@ -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}});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user