Merge branch 'fix/0922' of https://gitee.com/playeduxyz/backend into fix/0922

This commit is contained in:
unknown 2023-09-22 15:30:52 +08:00
commit 37b6d5b0ab
2 changed files with 3 additions and 5 deletions

View File

@ -7,7 +7,7 @@ interface PropInterface {
p: string;
class: string;
icon: any;
onClick: () => void;
onClick?: () => void;
disabled: any;
}
@ -30,7 +30,7 @@ export const PerButton = (props: PropInterface) => {
danger
icon={props.icon}
onClick={() => {
props.onClick();
props.onClick && props.onClick();
}}
disabled={props.disabled}
>
@ -43,7 +43,7 @@ export const PerButton = (props: PropInterface) => {
type={props.type}
icon={props.icon}
onClick={() => {
props.onClick();
props.onClick && props.onClick();
}}
disabled={props.disabled}
>

View File

@ -366,7 +366,6 @@ const MemberPage = () => {
class="mr-16"
icon={null}
p="user-store"
onClick={() => null}
disabled={null}
/>
</Link>
@ -384,7 +383,6 @@ const MemberPage = () => {
class="mr-16"
icon={null}
p="department-user-learn"
onClick={() => null}
disabled={null}
/>
</Link>