diff --git a/frontend/src/components/TreeNode.vue b/frontend/src/components/TreeNode.vue index 8efce527..0ac2dd6b 100644 --- a/frontend/src/components/TreeNode.vue +++ b/frontend/src/components/TreeNode.vue @@ -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 }