axios the variable scope of the problem

Analysis: In the process of using axios found .then ({function () {xxx }}) and .catch ({function () {xxx }}) within the code block variable scope is independent , so directly. then block the direct use of this access is not Vue instance , rely on the above case of .bind (this) to solve the problem.

Guess you like

Origin blog.csdn.net/DorAction/article/details/92662450