How to listen for window errors with onerror in Vue

such as the question, it has been monitored in main.js and created,mounted at present, but there is no response.
setTimeout (function () {throw new Error}, 1000). If a new error is delayed after one second, the error event will respond. Now I have an error as follows:

clipboard.png
this error pops up a second after logging in, but it is not monitored. How can it be monitored?
do not use try {} catch

Mar.15,2021
Menu