修复文件重命名自动添加后缀bug

This commit is contained in:
purocean
2018-03-19 11:43:39 +08:00
parent 3535fef92c
commit b1732bb385
-4
View File
@@ -83,10 +83,6 @@ export default {
renameFile () {
let newPath = window.prompt(`新文件名`, this.item.path)
if (!newPath.endsWith('.md')) {
newPath += '.md'
}
if (!newPath || newPath === this.item.path) {
return
}