mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
在开源版本看板增加检查是否为Plus的钩子
This commit is contained in:
@@ -30,7 +30,7 @@ func (this *IndexAction) RunGet(params struct{}) {
|
||||
helpers.NotifyIPItemsCountChanges()
|
||||
helpers.NotifyNodeLogsCountChange()
|
||||
|
||||
if teaconst.IsPlus {
|
||||
if this.checkPlus() {
|
||||
this.RedirectURL("/dashboard/boards")
|
||||
return
|
||||
}
|
||||
|
||||
8
internal/web/actions/default/dashboard/index_ext.go
Normal file
8
internal/web/actions/default/dashboard/index_ext.go
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright 2023 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
//go:build !plus
|
||||
|
||||
package dashboard
|
||||
|
||||
func (this *IndexAction) checkPlus() bool {
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user