优化代码/自动去除域名中的http://和https://等,防止误填

This commit is contained in:
GoEdgeLab
2022-07-17 17:12:44 +08:00
parent c6e3c44e71
commit 2ec8188c37
10 changed files with 65 additions and 30 deletions

View File

@@ -21,7 +21,9 @@ func (this *IndexAction) Init() {
this.Nav("", "", "purge")
}
func (this *IndexAction) RunGet(params struct{}) {
func (this *IndexAction) RunGet(params struct {
KeyType string
}) {
// 初始化菜单数据
err := InitMenu(this.Parent())
if err != nil {
@@ -29,6 +31,8 @@ func (this *IndexAction) RunGet(params struct{}) {
return
}
this.Data["keyType"] = params.KeyType
this.Show()
}