feat: 缓存处理国际化数据
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"ems.agt/src/framework/constants/common"
|
||||
"ems.agt/src/framework/i18n"
|
||||
"ems.agt/src/framework/utils/ctx"
|
||||
"ems.agt/src/framework/utils/file"
|
||||
"ems.agt/src/framework/utils/parse"
|
||||
@@ -171,6 +172,7 @@ func (s *SysDictTypeController) Remove(c *gin.Context) {
|
||||
// PUT /refreshCache
|
||||
func (s *SysDictTypeController) RefreshCache(c *gin.Context) {
|
||||
s.sysDictTypeService.ResetDictCache()
|
||||
i18n.ClearLocaleData() // 清空国际化数据
|
||||
c.JSON(200, result.Ok(nil))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user