Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return {
name
};
}
return {
name: '404'
}
}
}
]
}
if (routesConfig.h5.vueRouterDev) {
routesConfig.routes = vueDevRoutes;
}
const router = new Router(routesConfig);
const whitelist = {
'/pages/tabbar/tabbar-1/tabbar-1': 'tabbar-1',
'/pages/tabbar/tabbar-2/tabbar-2': 'tabbar-2',
'/pages/tabbar/tabbar-3/tabbar-3': 'tabbar-3',
'/pages/tabbar/tabbar-4/tabbar-4': 'tabbar-4',
'/pages/tabbar/tabbar-5/tabbar-5': 'tabbar-5'
}
let count =0;
router.beforeEach((to, from, next) => {
console.log(to)
console.log(from)
next();
return {
name
};
}
return {
name: '404'
}
}
}
]
}
if (routesConfig.h5.vueRouterDev) {
routesConfig.routes = vueDevRoutes;
}
const router = new Router(routesConfig);
const whitelist = {
'/pages/tabbar/tabbar-1/tabbar-1': 'tabbar-1',
'/pages/tabbar/tabbar-2/tabbar-2': 'tabbar-2',
'/pages/tabbar/tabbar-3/tabbar-3': 'tabbar-3',
'/pages/tabbar/tabbar-4/tabbar-4': 'tabbar-4',
'/pages/tabbar/tabbar-5/tabbar-5': 'tabbar-5'
}
let count =0;
router.beforeEach((to, from, next) => {
console.log(to)
console.log(from)
next();