代码生成路由修复

This commit is contained in:
yxh
2021-08-05 10:32:09 +08:00
parent ba8ea9c8cf
commit e6293fbf61
2 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ func (s *rule) DeleteMenuByIds(ids []int) (err error) {
}
}
ids = append(ids, childrenIds...)
_, err = dao.SysAuthRule.Where("id in (?)", ids).Delete()
_, err = dao.SysAuthRule.Where("id in (?)", ids).Unscoped().Delete() // 硬删除
return
}