在 Nuxt.js + Laravel(REST) 上创建了第一个应用程序。通过axios请求时,如果返回有错误的响应,例如后端的表单验证错误,则会出现错误页面

这使得无法处理错误。但是在非开发模式下运行应用程序时(npm run buid => npm run start),就没有这样的行为了。告诉我如何在开发模式下摆脱这种行为(npm run dev)?请求示例
async register() {
await this.$axios.post('/auth/register', this.form);
this.$auth.login({data: this.form});
this.$router.push({name: 'index'});
},