1. I wrote a login.vue under src to get different users (there are three users a b c) and token) through axios in this component. Then store the token in the cache. Bring this token to you every time you send a request
ask? Is it better to store this token in vuex? .. Can you provide pseudo code if token is placed after vuex, how to write the code of each request header
2. After getting different users above, the left menu of the background management system should display different menus (there is only one level of menu, that is, a father"s menu, a father"s son"s menu)
ask how to write this kind of route. I hope there is a code for reference. The novice asks the master here for advice.
the blog Park found a description of the background project written by someone else, so I didn"t quite understand it, so I came here for help!