mounted() {
$('#fullpage').fullpage({
navigation: true,
navigationPosition: 'left',
navigationTooltips: ['Главная', 'Почему гель?', 'Ассортимент'],
scrollingSpeed: 1500,
easingcss3: 'cubic-bezier(.39, .575, .565, 1)',
fitToSection: true,
});
}
export default new Router({
routes: [
{
path: '/',
name: 'Index',
component: Index,
beforeRouteLeave() {
$.fn.fullpage.destroy('all');
},
},
]
};