From cbe854a68d05054709b4bb718b265cb36536bf0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 19 Apr 2019 12:11:34 +0800 Subject: [PATCH] beter typesscript --- UserRegister/src/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UserRegister/src/index.tsx b/UserRegister/src/index.tsx index d4c30f2b..61e54086 100644 --- a/UserRegister/src/index.tsx +++ b/UserRegister/src/index.tsx @@ -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< (node && node.parentNode ? node.parentNode : node)} + getPopupContainer={node => + node && node.parentNode ? (node.parentNode as HTMLElement) : node + } content={
{passwordStatusMap[this.getPasswordStatus()]} -- GitLab