fix: 字典数据重新加载附加多语言缓存
This commit is contained in:
1 parent
68b7014ed4
commit
b52d92eaf9
1 file changed
+4
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user