1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 10:39:46 +02:00

allow controller to change view layout

This commit is contained in:
Xuan Sang LE
2018-08-22 19:50:52 +02:00
parent 0ee4a9314f
commit 3eefab1bdb
4 changed files with 6 additions and 28 deletions

View File

@ -18,6 +18,7 @@ function PostController:edit(...)
else
self.template:set("auth", false)
end
self:setLayout("admin")
--self:redirect("/category/put/1")
return true
end