加入重命名

This commit is contained in:
marvzhang
2019-12-25 21:10:39 +08:00
parent fca2302308
commit fd1246f9d2

View File

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