diff --git a/structs/storage/article.go b/structs/storage/article.go index ae51ef3..a904918 100644 --- a/structs/storage/article.go +++ b/structs/storage/article.go @@ -53,7 +53,7 @@ func (a *articleApi) Update(article v2.Article, selects ...string) error { if len(selects) > 0 { selects = []string{"remark", "exclude"} } - return a.db.Model(&article).Select(selects).Updates(article).Error + return a.db.Model(&article).Select(selects).Omit(clause.Associations).Updates(article).Error } // ******************Findĺ’ŚList