feat: fix response data assignment error (#2123)

This commit is contained in:
Yaodong Yu
2023-07-24 14:52:30 +08:00
committed by GitHub
parent 3c4112dd44
commit 577bd6ce58
11 changed files with 28 additions and 29 deletions

View File

@ -94,11 +94,10 @@ func (c *ApiController) GetPlan() {
plan.Options = append(plan.Options, option.DisplayName)
}
c.Data["json"] = plan
c.ResponseOk(plan)
} else {
c.Data["json"] = plan
c.ResponseOk(plan)
}
c.ServeJSON()
}
// UpdatePlan