feat: 安装页面布局
This commit is contained in:
@@ -104,6 +104,11 @@ public class InstallController {
|
||||
|
||||
@GetMapping("/install")
|
||||
public String install() {
|
||||
Config configuration = configMapper.getConfiguration(ConfigKeyEnum.BLOG_INSTALLED.getKey());
|
||||
if (Boolean.parseBoolean(configuration.getValue())) {
|
||||
return "index.html";
|
||||
}
|
||||
log.info("博客第一次运行,还未安装");
|
||||
return "install.html";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user