Browse Source

删除无用代码

tags/v1.22.7.2^2
liuzx 3 years ago
parent
commit
571b4138e2
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      modules/context/context.go

+ 0
- 2
modules/context/context.go View File

@@ -6,7 +6,6 @@
package context

import (
"fmt"
"html"
"html/template"
"io"
@@ -148,7 +147,6 @@ func (ctx *Context) HTML(status int, name base.TplName) {
func (ctx *Context) RenderWithErr(msg string, tpl base.TplName, form interface{}) {
if form != nil {
auth.AssignForm(form, ctx.Data)
fmt.Printf("ctx:", form)
}
ctx.Flash.ErrorMsg = msg
ctx.Data["Flash"] = ctx.Flash


Loading…
Cancel
Save