2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
A pop-up window prompt needs to be returned in the project, the following code:
const onProductSubmit = async () => {
const followById = await Open1688Api.updateProductFollowById(formData);
console.log('followById : ' + followById.toString())
alert(followById)
}
Output promise
After calling the interface, no result is returned
Adding async and await
const onProductSubmit = async () => {
const followById = await Open1688Api.updateProductFollowById(formData);
console.log('followById : ' + followById.toString())
alert(followById)
}