This commit is contained in:
pushuo 2022-07-13 16:54:14 +08:00
parent e333b42f4d
commit ef1b14fe54
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@
$http.post(`file_manager/rename`, {origin_name: this.folderCurrent, new_name: value}).then((res) => {
layer.msg(res.message)
data.name = value;
this.folderCurrent = this.folderCurrent.replace(/\/[^\/]*$/, '/' + value);
})
}
}).catch(() => {});