|
|
@@ -7,6 +7,7 @@ const wx = Vue.prototype.wx;
|
|
|
const whiteList = ['/login', '/auth-redirect', '/bind', '/register'];
|
|
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
+ console.log(JSON.stringify(to));
|
|
|
// 历史遗留问题 loginName和token参数都是唯一标识
|
|
|
if (to.query.token || to.query.loginName)
|
|
|
localStorage.setItem('loginName', to.query.token || to.query.loginName);
|