fix: 字典数据重新加载附加多语言缓存

This commit is contained in:
TsMask
2025-03-06 16:26:39 +08:00
parent 68b7014ed4
commit b52d92eaf9

View File

@@ -231,8 +231,12 @@ func (s SysDictTypeController) Remove(c *gin.Context) {
//
// PUT /refresh
func (s SysDictTypeController) Refresh(c *gin.Context) {
// 重新加载-字典数据
s.sysDictTypeService.CacheClean("*")
s.sysDictTypeService.CacheLoad("*")
// 重新加载-多语言
service.NewSysI18n.CacheClean("*")
service.NewSysI18n.CacheLoad("*")
c.JSON(200, resp.Ok(nil))
}