eslint has a rule that requires then to be followed by a catch
, but in most cases it does not support how to deal with the err, in catch (err= >.
), so I usually just console.log it
then the question is, is it necessary to follow catch?
as I did above directly console.log (err) does not help the page, the card is still stuck, writing catch is not superfluous?