增加表关联新建功能,同时修复数据库bug

This commit is contained in:
2021-08-29 06:08:19 +08:00
parent b480659a22
commit e1f4876621
6 changed files with 26 additions and 9 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ import (
var categoryCtr = Ctr{
"info": func(that *Context) {
//parentId:=ObjToInt(that.Req.FormValue("parent_id"))
parentId := ObjToInt(that.RouterString[2])
parentId := ObjToInt(that.Req.FormValue("id"))
//parentId := ObjToInt(that.RouterString[2])
if parentId == 0 {
parentId = 1
}