fix(auto_save): fix auto save return empty id

This commit is contained in:
razeen
2021-08-15 03:51:45 -07:00
parent 6ff6acdbda
commit cfaa25e123

View File

@@ -283,6 +283,9 @@ func handleAPIPostCreate(c *gin.Context) {
logrus.Error("handleAPIPostCreate.AddArticle: ", err)
return
}
cid = article.ID
if !article.IsDraft {
// 异步执行,快
go func() {