fix: setTimout problem

This commit is contained in:
eilenexuzhe
2020-04-02 16:59:38 +08:00
parent e1a8081f4b
commit 922545096a
4 changed files with 7 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ class Topic extends React.Component<any> {
this.setState({ loading: true });
createTopic(values).then(data => {
notification.success({ message: '申请Topic成功' });
setTimeout(() => location.assign('/user/my_order'), 500);
window.setTimeout(() => location.assign('/user/my_order'), 500);
modal.close();
}, (err) => {
this.setState({ loading: false });