Browse Source

Merge pull request '修正了无法删除菜单的错误' (#65) from fix_DeleteMen into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/65
Reviewed-by: zhangxin <xin.zhang@le-it.com.cn>
pull/66/head
weichenglei 3 years ago
parent
commit
ce50b98936
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      web/controllers/menu_controller.go

+ 1
- 1
web/controllers/menu_controller.go View File

@ -164,7 +164,7 @@ func UpdateMenu(ctx iris.Context) {
// @Router /api/v1/menu/{id} [delete]
func DeleteMenu(ctx iris.Context) {
var data models.Menu
id := ctx.Params().Get("id")
id := ctx.Params().GetString("id")
data.UpdateBy = utils.TimeFormat(time.Now(), "yyyyMMddHHmmss")
_, err := data.Delete(utils.ValueToInt(id, 0))
if err != nil {


Loading…
Cancel
Save