Skip to content

Commit

Permalink
fix: 错误提示
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoubichuan committed Dec 21, 2024
1 parent a9d0acb commit ce2444f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/user/register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ const Register: FC = () => {
account: params.email,
},
});
} else {
message.error(data.message);
}
},
});
Expand Down
1 change: 1 addition & 0 deletions src/pages/user/register/service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { request } from 'umi';

export interface StateType {
message: string;
status?: 'success' | 'error';
currentAuthority?: 'user' | 'guest' | 'admin';
}
Expand Down

0 comments on commit ce2444f

Please sign in to comment.