【7.1.6】【theme】更新系统初始化主题未刷新的问题

pull/26/MERGE
fengshuonan 2022-02-26 12:59:49 +08:00
parent b5ed8efcd1
commit b8b2514814
1 changed files with 33 additions and 0 deletions

View File

@ -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);
}
}