mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-10 00:42:07 +08:00
fix: setTimout problem
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user