Browse Source

修改路径

layui
yirenyishi 6 years ago
parent
commit
ce8f0256a1
  1. 2
      controllers/BlogController.go

2
controllers/BlogController.go

@ -158,7 +158,7 @@ func (this *BlogController) Del() {
func (this *BlogController) New() { func (this *BlogController) New() {
uid := this.GetSession("userid") uid := this.GetSession("userid")
if uid == nil { if uid == nil {
this.Redirect("login.html", 302) this.Redirect("/login", 302)
return return
} }
this.TplName = "newblog.html" this.TplName = "newblog.html"

Loading…
Cancel
Save