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.

60 lines
1.8 KiB

4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
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 _e5ead240 = () => interopDefault(import('..\\pages\\register.vue' /* webpackChunkName: "pages_register" */))
  9. const _0f3a46dd = () => interopDefault(import('..\\pages\\ucenter.vue' /* webpackChunkName: "pages_ucenter" */))
  10. const _3c6b3d65 = () => interopDefault(import('..\\pages\\index.vue' /* webpackChunkName: "pages_index" */))
  11. // TODO: remove in Nuxt 3
  12. const emptyFn = () => {}
  13. const originalPush = Router.prototype.push
  14. Router.prototype.push = function push (location, onComplete = emptyFn, onAbort) {
  15. return originalPush.call(this, location, onComplete, onAbort)
  16. }
  17. Vue.use(Router)
  18. export const routerOptions = {
  19. mode: 'history',
  20. base: decodeURI('/'),
  21. linkActiveClass: 'nuxt-link-active',
  22. linkExactActiveClass: 'nuxt-link-exact-active',
  23. scrollBehavior,
  24. routes: [{
  25. path: "/club",
  26. component: _578f272f,
  27. name: "club"
  28. }, {
  29. path: "/home",
  30. component: _616e5366,
  31. name: "home"
  32. }, {
  33. path: "/login",
  34. component: _0612e07c,
  35. name: "login"
  36. }, {
  37. path: "/register",
  38. component: _e5ead240,
  39. name: "register"
  40. }, {
  41. path: "/ucenter",
  42. component: _0f3a46dd,
  43. name: "ucenter"
  44. }, {
  45. path: "/",
  46. component: _3c6b3d65,
  47. name: "index"
  48. }],
  49. fallback: false
  50. }
  51. export function createRouter () {
  52. return new Router(routerOptions)
  53. }