From ef91858f58ffd97771b07d9f7028f026e53d1df8 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Wed, 25 Dec 2019 21:10:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/File/FileList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/File/FileList.vue b/frontend/src/components/File/FileList.vue index a289b59a..c0fd8135 100644 --- a/frontend/src/components/File/FileList.vue +++ b/frontend/src/components/File/FileList.vue @@ -204,7 +204,7 @@ export default { }, async onRenameFile () { let newPath - if (this.currentPath === '') { + if (this.currentPath.split('/').length === 1) { newPath = this.name } else { const arr = this.currentPath.split('/')