How can I assign a non-async varible to a value using a async function's return value

前端 未结 0 1622
眼角桃花
眼角桃花 2021-02-05 12:57

I am trying to get the values inside of the struct to equal the exchange rate as you can see below. The error I get is cannot use await inside of a none async function. Which is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题