You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
import Vue from 'vue'
|
|
import Router from 'vue-router'
|
|
import { interopDefault } from './utils'
|
|
import scrollBehavior from './router.scrollBehavior.js'
|
|
|
|
const _578f272f = () => interopDefault(import('..\\pages\\club\\index.vue' /* webpackChunkName: "pages_club_index" */))
|
|
const _616e5366 = () => interopDefault(import('..\\pages\\home\\index.vue' /* webpackChunkName: "pages_home_index" */))
|
|
const _0612e07c = () => interopDefault(import('..\\pages\\login.vue' /* webpackChunkName: "pages_login" */))
|
|
const _3c6b3d65 = () => interopDefault(import('..\\pages\\index.vue' /* webpackChunkName: "pages_index" */))
|
|
|
|
// TODO: remove in Nuxt 3
|
|
const emptyFn = () => {}
|
|
const originalPush = Router.prototype.push
|
|
Router.prototype.push = function push (location, onComplete = emptyFn, onAbort) {
|
|
return originalPush.call(this, location, onComplete, onAbort)
|
|
}
|
|
|
|
Vue.use(Router)
|
|
|
|
export const routerOptions = {
|
|
mode: 'history',
|
|
base: decodeURI('/'),
|
|
linkActiveClass: 'nuxt-link-active',
|
|
linkExactActiveClass: 'nuxt-link-exact-active',
|
|
scrollBehavior,
|
|
|
|
routes: [{
|
|
path: "/club",
|
|
component: _578f272f,
|
|
name: "club"
|
|
}, {
|
|
path: "/home",
|
|
component: _616e5366,
|
|
name: "home"
|
|
}, {
|
|
path: "/login",
|
|
component: _0612e07c,
|
|
name: "login"
|
|
}, {
|
|
path: "/",
|
|
component: _3c6b3d65,
|
|
name: "index"
|
|
}],
|
|
|
|
fallback: false
|
|
}
|
|
|
|
export function createRouter () {
|
|
return new Router(routerOptions)
|
|
}
|