mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-28 21:46:36 +08:00
当迁移了管理平台后,自动跳转到确认API配置页
This commit is contained in:
17
internal/web/actions/default/setup/confirm/helper.go
Normal file
17
internal/web/actions/default/setup/confirm/helper.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user