Commit f1c251d5 authored by Xuguangxing's avatar Xuguangxing

fix

parent 4e0dafdc
......@@ -10,10 +10,7 @@ export default {
// token校验,整个流程都是登陆后的
init: router => {
router.beforeEach((to, from, next) => {
if (
to.name == 'groupBuyList' &&
(from.name == 'groupBuySkuInfo' || Object.keys(from.query).length == 0)
) {
if (to.name == 'groupBuyList' && from.name == 'groupBuySkuInfo') {
// 这是为了详情页登录,把登录信息带回列表页所做的处理
to.query.vccToken = '{token}';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment