自定义页面增加是否“启用系统自定义页面”选项

This commit is contained in:
GoEdgeLab
2024-05-03 09:35:12 +08:00
parent f34cb4ef37
commit 3d5b5603bd
6 changed files with 844 additions and 697 deletions

View File

@@ -173,6 +173,7 @@ func (this *ServerConfig) Init(ctx context.Context) (results []error) {
// pages
if len(groupWeb.Pages) > 0 || (groupWeb.Shutdown != nil && groupWeb.Shutdown.IsOn) {
this.Web.EnableGlobalPages = groupWeb.EnableGlobalPages
this.Web.Pages = groupWeb.Pages
this.Web.Shutdown = groupWeb.Shutdown
}