增加DEMO模式、修复监控节点、用户节点、认证节点无法查看运行日志的Bug

This commit is contained in:
GoEdgeLab
2021-07-21 22:14:33 +08:00
parent 5b6812b8b9
commit 96960ae7e9
15 changed files with 79 additions and 41 deletions

View File

@@ -34,6 +34,9 @@ func (this *IndexAction) RunGet(params struct {
Auth *helpers.UserShouldAuth
}) {
// DEMO模式
this.Data["isDemo"] = teaconst.IsDemoMode
// 检查系统是否已经配置过
if !setup.IsConfigured() {
this.RedirectURL("/setup")