Skip to content

Commit b1301b0

Browse files
authored
fix: 更新时删除本地存储 (#207)
* fix:cache重复引用修复 * fix:repo更新需要删除localStorage ---------
1 parent 824c599 commit b1301b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmd/eagle/internal/repo/add/template.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func (r *{{.LcName}}Repo) Update{{.Name}}(ctx context.Context, id int64, data *m
102102
{{- if .WithCache }}
103103
// delete cache
104104
_ = r.cache.Del{{.Name}}Cache(ctx, id)
105+
_ = r.localCache.Del(ctx, cast.ToString(id))
105106
{{- end }}
106107
return nil
107108
}

0 commit comments

Comments
 (0)