|
|
@@ -84,11 +84,11 @@ class Menu extends Controller
|
|
|
'icon' => 'nullable|string',
|
|
|
'sort' => 'required|nullable|integer',
|
|
|
];
|
|
|
- if (empty($id)) {
|
|
|
+// if (empty($id)) {
|
|
|
$validator['parent_id'] = ['required', 'integer', 'min:0'];
|
|
|
$validator['uri'] = ['required', 'string', 'max:200'];
|
|
|
$validator['type'] = ['required', 'integer', 'in:1,2'];
|
|
|
- }
|
|
|
+// }
|
|
|
$params = request()->validate($validator);
|
|
|
$ret = MenuService::submit($params);
|
|
|
if ($ret['code'] == BaseService::NOT) {
|