Преглед изворни кода

add default register email

ddcat1115 пре 8 година
родитељ
комит
7e336e8d24
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      src/routes/User/RegisterResult.js

+ 5 - 1
src/routes/User/RegisterResult.js

@@ -15,7 +15,11 @@ export default ({ location }) => (
   <Result
     className={styles.registerResult}
     type="success"
-    title={<div className={styles.title}>你的账户:{location.state && location.state.account} 注册成功</div>}
+    title={
+      <div className={styles.title}>
+        你的账户:{location.state ? location.state.account : 'AntDesign@example.com'} 注册成功
+      </div>
+    }
     description="激活邮件已发送到你的邮箱中,邮件有效期为24小时。请及时登录邮箱,点击邮件中的链接激活帐户。"
     actions={actions}
     style={{ marginTop: 56 }}