refactor: 修改导航新增验证场景
This commit is contained in:
@@ -83,7 +83,7 @@ class NavigationItemValidate extends Validate
|
|||||||
// 新增场景
|
// 新增场景
|
||||||
public function sceneAdd()
|
public function sceneAdd()
|
||||||
{
|
{
|
||||||
return $this->only(['nav_id', 'pid', 'name', 'icon', 'link_type', 'link', 'sort', 'blank', 'status'])->remove('pid', 'different');
|
return $this->only(['nav_id', 'pid', 'name', 'icon', 'link_type', 'link', 'sort', 'blank', 'status'])->remove('pid', 'different|checkPidNotBeChildren');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新场景
|
// 更新场景
|
||||||
|
|||||||
Reference in New Issue
Block a user