处理登录流程:views目录下的login.vue中,登录方法login指向sotre/modules下的user.js中的login方法,在其中再指向api/user中的login方法,在utils/request中被service.interceptors.response.use拦截返回数据,进行状态码处理。返回数据后进行token等其他数据处理
vue-admin-template学习记录
最新推荐文章于 2024-05-12 17:27:17 发布
处理登录流程:views目录下的login.vue中,登录方法login指向sotre/modules下的user.js中的login方法,在其中再指向api/user中的login方法,在utils/request中被service.interceptors.response.use拦截返回数据,进行状态码处理。返回数据后进行token等其他数据处理