为什么axios post方法返回Promise {<pending>}?

时间:2019-10-22 08:57:30

标签: reactjs

我想在commitjs的reactjs函数中使用axios post方法,但要让axios返回Promise {}

我试图将console.log放在每一步中,但是没有人出来。我也尝试更改访存,但遇到了同样的问题。

NamespaceTable table = NamespaceTable.getDefaultInstance();  
table.add(1, "urn:something:UnifiedAutomation:Uagateway"); 

...
//consecutive browse request starting from reference returned by first call
browse1.setNodeId(table.toNodeId(references[0].getNodeId()));
BrowseResponse res1 = mySession.Browse(null, null, null, browse);
ReferenceDescription[] references1 = res.getResults()[0].getReferences(); 

除了帖子,我可以从端点返回值。

0 个答案:

没有答案