fix:update dir
This commit is contained in:
1 parent
5a793b9e34
commit
87aa013cf7
1 file changed
+3
-4
+3
-4
@@ -1,7 +1,6 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
orm "go-admin/global"
|
orm "go-admin/global"
|
||||||
"go-admin/tools"
|
"go-admin/tools"
|
||||||
)
|
)
|
||||||
@@ -106,9 +105,9 @@ func (e *SysFileDir) Update(id int) (update SysFileDir, err error) {
|
|||||||
}
|
}
|
||||||
e.Path = path
|
e.Path = path
|
||||||
|
|
||||||
if e.Path != "" && e.Path != update.Path {
|
//if e.Path != "" && e.Path != update.Path {
|
||||||
return update, errors.New("上级不允许修改!")
|
// return update, errors.New("上级不允许修改!")
|
||||||
}
|
//}
|
||||||
|
|
||||||
//参数1:是要修改的数据
|
//参数1:是要修改的数据
|
||||||
//参数2:是修改的数据
|
//参数2:是修改的数据
|
||||||
|
|||||||
Reference in new issue
Block a user