关于axios中的this

vue使用axios的回调函数中this不指向vue实例,为undefined;
需要改成箭头函数才可使this指向vue实例

posted @ 2021-12-24 10:15  1940  阅读(53)  评论(0编辑  收藏  举报