Vue Error: Error in v-on handler (Promise/async): “Error: Error“

The error message is as follows

[Vue warn]: Error in v-on handler (Promise/async): "Error: Error"

found in

---> <Navbar> at src/layout/components/Navbar.vue
       <Layout> at src/layout/index.vue
         <App> at src/App.vue
           <Root>

The solution is as follows

1. F12 enter the developer mode and click the area in the box

2. Check the response code, which is the value on the right side of res.code

3. Add code to easy mock

Read More: