From a6fac96ec1796c7a357cfe1defc2eaa87ce5e1eb Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 14 Feb 2025 15:06:17 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=88=97=E8=A1=A8=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/file.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/pages/manage/file.vue b/resources/assets/js/pages/manage/file.vue index 0de54e173..45bcd4a90 100644 --- a/resources/assets/js/pages/manage/file.vue +++ b/resources/assets/js/pages/manage/file.vue @@ -1043,15 +1043,15 @@ export default { }, browseFolder(id, shakeId = null) { + if (this.pid == id && this.fid == 0 && shakeId) { + this.shakeFile(shakeId); + return; + } if (id > 0) { - if (this.pid == id && this.fid == 0 && shakeId) { - this.shakeFile(shakeId); - return; - } this.goForward({name: 'manage-file', params: {folderId: id, fileId: null, shakeId}}); } else { this.searchKey = ''; - this.goForward({name: 'manage-file'}); + this.goForward({name: 'manage-file', params: {folderId: null, fileId: null, shakeId}}); } },