From b1732bb3857028e41e7600a7ef653a6a03ef8145 Mon Sep 17 00:00:00 2001 From: purocean Date: Mon, 19 Mar 2018 11:43:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E8=87=AA=E5=8A=A8=E6=B7=BB=E5=8A=A0=E5=90=8E?= =?UTF-8?q?=E7=BC=80bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/TreeNode.vue | 4 ---- 1 file changed, 4 deletions(-) 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 }