当迁移了管理平台后,自动跳转到确认API配置页

This commit is contained in:
GoEdgeLab
2021-11-21 15:57:13 +08:00
parent b155fcedcb
commit 7108a446f6
11 changed files with 406 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package confirm
import (
"github.com/TeaOSLab/EdgeAdmin/internal/setup"
"github.com/iwind/TeaGo/actions"
)
type Helper struct {
}
func (this *Helper) BeforeAction(actionPtr actions.ActionWrapper) (goNext bool) {
if !setup.IsNewInstalled() {
actionPtr.Object().RedirectURL("/")
return false
}
return true
}