Uncaught (in promise) TypeError: Cannot read property 'error' of undefined at __webpack_exports__.a 是因为在 axios 请求拦截的时候做了 state 的判断 去掉判断就好了