mirror of
https://github.com/purocean/yn.git
synced 2026-10-13 07:38:54 +08:00
调整新建文件内容
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user