should copy the data direct. don't need range
Showing
1 changed file
with
1 additions
and
3 deletions
| ... | @@ -76,9 +76,7 @@ func (c *Controller) Init(ctx *context.Context, controllerName, actionName strin | ... | @@ -76,9 +76,7 @@ func (c *Controller) Init(ctx *context.Context, controllerName, actionName strin |
| 76 | c.TplExt = "tpl" | 76 | c.TplExt = "tpl" |
| 77 | c.AppController = app | 77 | c.AppController = app |
| 78 | c.EnableReander = true | 78 | c.EnableReander = true |
| 79 | for k, v := range ctx.Input.Data { | 79 | c.Data = ctx.Input.Data |
| 80 | c.Data[k] = v | ||
| 81 | } | ||
| 82 | } | 80 | } |
| 83 | 81 | ||
| 84 | // Prepare runs after Init before request function execution. | 82 | // Prepare runs after Init before request function execution. | ... | ... |
-
Please register or sign in to post a comment