Fixed scroll component so it uses slot props instead of the depcrecated .
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import Vue from 'vue';
|
||||
import VueRouter from 'vue-router';
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
|
||||
import Home from '../components/home/home.vue';
|
||||
import Release from '../components/releases/release.vue';
|
||||
@@ -14,8 +13,6 @@ import Search from '../components/search/search.vue';
|
||||
import Stats from '../components/stats/stats.vue';
|
||||
import NotFound from '../components/errors/404.vue';
|
||||
|
||||
Vue.use(VueRouter);
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
@@ -184,15 +181,15 @@ const routes = [
|
||||
component: NotFound,
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
path: '/:catchAll(.*)',
|
||||
redirect: {
|
||||
name: 'not-found',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user