我在这里遇到了一个问题,方法开火的顺序不对。我不知道如何让this.props.history.pushState(null, '/authors');在saveAuthor()方法中等待。我们会非常感谢你的帮助。import AuthorForm from '.method but the this.props.history goes first rather than this.postAuthor();
你好,我用防火墙保存了一个图像,在我用一个if用url发送信息后,然后得到url后的条件,我知道那是一个承诺和异步,但是我需要我的条件等待,然后我不知道我的条件可以等待一个然后在函数内完成吗?event.preventDefault();imageUploader(file);
if (enterPhone.imageUrl