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('/')