This commit is contained in:
zyronon
2025-09-15 02:08:47 +08:00
parent 14ca910066
commit 967820793c
2 changed files with 10 additions and 9 deletions

View File

@@ -146,8 +146,9 @@ function save(option: 'save' | 'saveAndNext') {
let d = cloneDeep(editArticle)
if (!d.id) d.id = nanoid(6)
delete d.sections
// copy(console.json(d, 2))
copy(JSON.stringify(d, null, 2))
//这个console.json方法特意将array压缩了而不压缩其他方便可视化复制到文章的json里面去
copy(console.json(d, 2))
// copy(JSON.stringify(d, null, 2))
const saveTemp = () => {
emit(option as any, editArticle)
return resolve(true)