fix: 字典数据重新加载附加多语言缓存
This commit is contained in:
@@ -231,8 +231,12 @@ func (s SysDictTypeController) Remove(c *gin.Context) {
|
|||||||
//
|
//
|
||||||
// PUT /refresh
|
// PUT /refresh
|
||||||
func (s SysDictTypeController) Refresh(c *gin.Context) {
|
func (s SysDictTypeController) Refresh(c *gin.Context) {
|
||||||
|
// 重新加载-字典数据
|
||||||
s.sysDictTypeService.CacheClean("*")
|
s.sysDictTypeService.CacheClean("*")
|
||||||
s.sysDictTypeService.CacheLoad("*")
|
s.sysDictTypeService.CacheLoad("*")
|
||||||
|
// 重新加载-多语言
|
||||||
|
service.NewSysI18n.CacheClean("*")
|
||||||
|
service.NewSysI18n.CacheLoad("*")
|
||||||
c.JSON(200, resp.Ok(nil))
|
c.JSON(200, resp.Ok(nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user