1. Changes requested by Axios

1.1 modify the BaseUrl

1.2 Modify the format interface of the back – end return format

Similarly, configure its generic interface type

1.3 Use the Login method to instantiate the description

1.3.1 Login Page Login method

Vuex is used here to trigger the ACTION_LOGIN method

1.3.2 After successful login, route redirection is performed and permission authentication is performed

When the back end does not have the userInfo method, it can be emulated using dummy data

After 1.3.3, routes can be divided according to users’ roles.