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 _e5ead240 = () => interopDefault(import('..\\pages\\register.vue' /* webpackChunkName: "pages_register" */)) const _0f3a46dd = () => interopDefault(import('..\\pages\\ucenter.vue' /* webpackChunkName: "pages_ucenter" */)) 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: "/register", component: _e5ead240, name: "register" }, { path: "/ucenter", component: _0f3a46dd, name: "ucenter" }, { path: "/", component: _3c6b3d65, name: "index" }], fallback: false } export function createRouter () { return new Router(routerOptions) }