mirror of https://gitee.com/stylefeng/roses
【7.1.6】【theme】更新系统初始化主题未刷新的问题
parent
b5ed8efcd1
commit
b8b2514814
|
@ -0,0 +1,33 @@
|
||||||
|
package cn.stylefeng.roses.kernel.system.modular.theme.clean;
|
||||||
|
|
||||||
|
import cn.stylefeng.roses.kernel.cache.api.CacheOperatorApi;
|
||||||
|
import cn.stylefeng.roses.kernel.config.api.ConfigInitCallbackApi;
|
||||||
|
import cn.stylefeng.roses.kernel.system.api.constants.SystemConstants;
|
||||||
|
import cn.stylefeng.roses.kernel.system.modular.theme.pojo.DefaultTheme;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统初始化之后的主题资源刷新
|
||||||
|
*
|
||||||
|
* @author fengshuonan
|
||||||
|
* @date 2022/2/26 12:55
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class ThemeConfigRefresh implements ConfigInitCallbackApi {
|
||||||
|
|
||||||
|
@Resource(name = "themeCacheApi")
|
||||||
|
private CacheOperatorApi<DefaultTheme> themeCacheApi;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initBefore() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initAfter() {
|
||||||
|
themeCacheApi.remove(SystemConstants.THEME_GUNS_PLATFORM);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue