前端ui调整

This commit is contained in:
pixel
2019-12-12 14:49:40 +08:00
parent 3f17e80944
commit 49c0eb6b4f
8 changed files with 72 additions and 117 deletions

View File

@@ -27,7 +27,7 @@ func (a *SysApi) CreateApi() (err error) {
func (a *SysApi) DeleteApi() (err error) {
err = qmsql.DEFAULTDB.Delete(a).Error
err = qmsql.DEFAULTDB.Where("api_id = ?", a.ID).Unscoped().Delete(&SysApiAuthority{}).Error
new(CasbinModel).clearCasbin(1,a.Path)
return err
}