Skip to content

Commit

Permalink
修复对话框显示错误;
Browse files Browse the repository at this point in the history
  • Loading branch information
cxOrz committed Apr 7, 2023
1 parent 261271d commit c39ccfb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/src/pages/Start/Start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ function Start() {
}
};

const addAccount = () => {
emitDialog(DialogChoice.LOGIN, true);
};

// 根据参数设置弹出对话框
const emitDialog = (choice: DialogChoice, open: boolean) => {
setDialogChoice(choice);
Expand Down Expand Up @@ -227,7 +231,7 @@ function Start() {
marginRight: 3.5
}}
className={styles.neumCard}
onClick={() => { setOpen(true); }}
onClick={addAccount}
>
<Icon sx={{
width: 'auto',
Expand Down

0 comments on commit c39ccfb

Please sign in to comment.