fix:update dir

This commit is contained in:
zhangwenjian
2020-08-23 22:58:11 +08:00
parent 5a793b9e34
commit 87aa013cf7
+3 -4
View File
@@ -1,7 +1,6 @@
package models
import (
"errors"
orm "go-admin/global"
"go-admin/tools"
)
@@ -106,9 +105,9 @@ func (e *SysFileDir) Update(id int) (update SysFileDir, err error) {
}
e.Path = path
if e.Path != "" && e.Path != update.Path {
return update, errors.New("上级不允许修改!")
}
//if e.Path != "" && e.Path != update.Path {
// return update, errors.New("上级不允许修改!")
//}
//参数1:是要修改的数据
//参数2:是修改的数据