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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b40258-2c507.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b40258-2c507.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?