管理端和商家端userInfo字段名变更,管理端会员详情,他的积分字段调整

This commit is contained in:
mabo
2021-08-04 17:51:43 +08:00
parent 726ae1f856
commit 0387ac510a
22 changed files with 44 additions and 47 deletions

View File

@@ -23,12 +23,12 @@ router.beforeEach((to, from, next) => {
const name = to.name;
if (!Cookies.get('userInfo') && name !== 'login') {
if (!Cookies.get('userInfoManager') && name !== 'login') {
// 判断是否已经登录且前往的页面不是登录页
next({
name: 'login'
});
} else if (Cookies.get('userInfo') && name === 'login') {
} else if (Cookies.get('userInfoManager') && name === 'login') {
// 判断是否已经登录且前往的是登录页
Util.title();
next({