调整新建文件内容

This commit is contained in:
purocean
2018-07-16 09:29:56 +08:00
parent 1ef09a4f82
commit 394818e7e3
+1 -1
View File
@@ -78,7 +78,7 @@ export default {
}
const path = this.item.path + '/' + filename
File.write(path, `# ${filename.replace(/\.md$/i, '')}`, () => {
File.write(path, `# ${filename.replace(/\.md$/i, '')}\n`, () => {
this.$emit('change', path)
}, e => {
alert(e.message)