- 系统安装页面默认判断数据库
SysConfig表是否存在SystemInfo - 在
BaseLayout中,读取配置信息赋给上下文,若上下文系统信息为空,则跳转到安装页面 - 若要取消安装页面,则在
AppConfig.cs中,直接设置配置的IsInstalled为True,示例如下:
public static class AppConfig
{
public static void AddApplication(this WebApplicationBuilder builder)
{
Config.IsInstalled = true;
}
}