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

4 weeks ago
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import { interopDefault } from './utils'
  4. import scrollBehavior from './router.scrollBehavior.js'
  5. const _578f272f = () => interopDefault(import('..\\pages\\club\\index.vue' /* webpackChunkName: "pages_club_index" */))
  6. const _616e5366 = () => interopDefault(import('..\\pages\\home\\index.vue' /* webpackChunkName: "pages_home_index" */))
  7. const _0612e07c = () => interopDefault(import('..\\pages\\login.vue' /* webpackChunkName: "pages_login" */))
  8. const _3c6b3d65 = () => interopDefault(import('..\\pages\\index.vue' /* webpackChunkName: "pages_index" */))
  9. // TODO: remove in Nuxt 3
  10. const emptyFn = () => {}
  11. const originalPush = Router.prototype.push
  12. Router.prototype.push = function push (location, onComplete = emptyFn, onAbort) {
  13. return originalPush.call(this, location, onComplete, onAbort)
  14. }
  15. Vue.use(Router)
  16. export const routerOptions = {
  17. mode: 'history',
  18. base: decodeURI('/'),
  19. linkActiveClass: 'nuxt-link-active',
  20. linkExactActiveClass: 'nuxt-link-exact-active',
  21. scrollBehavior,
  22. routes: [{
  23. path: "/club",
  24. component: _578f272f,
  25. name: "club"
  26. }, {
  27. path: "/home",
  28. component: _616e5366,
  29. name: "home"
  30. }, {
  31. path: "/login",
  32. component: _0612e07c,
  33. name: "login"
  34. }, {
  35. path: "/",
  36. component: _3c6b3d65,
  37. name: "index"
  38. }],
  39. fallback: false
  40. }
  41. export function createRouter () {
  42. return new Router(routerOptions)
  43. }