Commit cbe854a6 authored by 陈帅's avatar 陈帅

beter typesscript

parent b405a52d
......@@ -92,7 +92,6 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
componentDidUpdate() {
const { form, BLOCK_NAME_CAMEL_CASE } = this.props;
const account = form.getFieldValue('mail');
if (BLOCK_NAME_CAMEL_CASE.status === 'ok') {
message.success('注册成功!');
}
......@@ -235,7 +234,9 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
</FormItem>
<FormItem help={help}>
<Popover
getPopupContainer={node => (node && node.parentNode ? node.parentNode : node)}
getPopupContainer={node =>
node && node.parentNode ? (node.parentNode as HTMLElement) : node
}
content={
<div style={{ padding: '4px 0' }}>
{passwordStatusMap[this.getPasswordStatus()]}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment