feat: 安装页面布局

This commit is contained in:
禾几海
2020-10-22 14:12:01 +08:00
parent 76f3d16e09
commit b920034ad6
3 changed files with 105 additions and 20 deletions

View File

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