Skip to content

Commit

Permalink
fix: component required 逻辑修复
Browse files Browse the repository at this point in the history
  • Loading branch information
yudeguo authored and d3george committed Mar 28, 2024
1 parent 5632344 commit 642cb85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/management/system/permission/permission-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ export default function PermissionModal({
<Form.Item<Permission>
label="Component"
name="component"
required={formValue.type === PermissionType.MENU}
required={getFieldValue('type') === PermissionType.MENU}
>
<AutoComplete
options={compOptions}
placeholder="Please input component path"
filterOption={(input, option) =>
((option?.label || '') as string).toLowerCase().includes(input.toLowerCase())
}
Expand Down

0 comments on commit 642cb85

Please sign in to comment.