mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 13:52:26 +08:00
fix(auto_save): fix auto save return empty id
This commit is contained in:
@@ -283,6 +283,9 @@ func handleAPIPostCreate(c *gin.Context) {
|
||||
logrus.Error("handleAPIPostCreate.AddArticle: ", err)
|
||||
return
|
||||
}
|
||||
|
||||
cid = article.ID
|
||||
|
||||
if !article.IsDraft {
|
||||
// 异步执行,快
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user