报错场景:调用某个接口的时候,返回了报错信息405 not allow
报错信息如下:
vue.runtime.esm.js?2b0e:619 [Vue warn]: Property "visible" must be accessed with "$data.visible" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internalsSee: https://vuejs.org/v2/api/#data
(found in <Root>)
只有报错的时候才会显示,定位发现在响应拦截里面捕获错误的时候才提示;
后面发现错误代码如下:
捕获错误代码这里使用Message.error(error); 这里只支持string类型,但是却传入了对象,导致报错;
更正如下即可