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, catcha
DS
a

DS
a
awaitDS
DS
DS
3
A
AA
result = await Axios.put(url, payload, config)
.catch(exceptionHandling)
a
await, вам не возвращается Promise, тем самым о then, catch речи и быть не может, вам нужно словить ошибку в блоке try, catchDS
DS
AA