修复:分享页面需要登陆的问题
This commit is contained in:
parent
3d8c9b9af2
commit
08cb3f0c3c
@ -7,9 +7,10 @@ import getPageTitle from '@/utils/get-page-title'
|
|||||||
|
|
||||||
NProgress.configure({ showSpinner: false }) // NProgress配置
|
NProgress.configure({ showSpinner: false }) // NProgress配置
|
||||||
|
|
||||||
const whiteList = ['/login','/s','/s_m','/share'] // 白名单
|
const whiteList = ['/login','/s','/s/','/s_m','/s_m/'] // 白名单
|
||||||
|
|
||||||
router.beforeEach(async(to, from, next) => {
|
router.beforeEach(async(to, from, next) => {
|
||||||
|
console.log(to)
|
||||||
// 开始进度条
|
// 开始进度条
|
||||||
NProgress.start()
|
NProgress.start()
|
||||||
// 设置页面标题
|
// 设置页面标题
|
||||||
@ -79,6 +80,7 @@ function setMenuList(next, to){
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
console.log('next(to)', to)
|
||||||
next(to)
|
next(to)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user