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

This commit is contained in:
刘祥超
2021-11-21 15:57:13 +08:00
parent ac39908737
commit 749eac74fe
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
}