a
try {
const result = await Axios.put(url, payload, config)
console.log('success', result)
} catch (error) {
console.log('something wrong', error)
}
Size: a a a
a
try {
const result = await Axios.put(url, payload, config)
console.log('success', result)
} catch (error) {
console.log('something wrong', error)
}
DS
DS
a
then, catch
a
DS
a
DS
a
await
DS
DS
DS
3
A
AA
result = await Axios.put(url, payload, config)
.catch(exceptionHandling)
a
await
, вам не возвращается Promise
, тем самым о then, catch
речи и быть не может, вам нужно словить ошибку в блоке try, catch
DS
DS
AA