mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
修复文件重命名自动添加后缀bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user