mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-03-05 18:15:36 +08:00
路由规则找不到的时候提示用户
This commit is contained in:
@@ -23,7 +23,12 @@ func (this *IndexAction) Init() {
|
||||
func (this *IndexAction) RunGet(params struct {
|
||||
LocationId int64
|
||||
}) {
|
||||
locationConfig := this.Data.Get("locationConfig").(*serverconfigs.HTTPLocationConfig)
|
||||
var location = this.Data.Get("locationConfig")
|
||||
if location == nil {
|
||||
this.NotFound("location", params.LocationId)
|
||||
return
|
||||
}
|
||||
var locationConfig = location.(*serverconfigs.HTTPLocationConfig)
|
||||
|
||||
this.Data["patternTypes"] = serverconfigs.AllLocationPatternTypes()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user