index.js 598 B

123456789101112131415161718192021222324
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. import routes from './routes'
  4. Vue.use(VueRouter)
  5. const Router = new VueRouter({
  6. /*
  7. * NOTE! Change Vue Router mode from quasar.conf.js -> build -> vueRouterMode
  8. *
  9. * If you decide to go with "history" mode, please also set "build.publicPath"
  10. * to something other than an empty string.
  11. * Example: '/' instead of ''
  12. */
  13. // Leave as is and change from quasar.conf.js instead!
  14. mode: process.env.VUE_ROUTER_MODE,
  15. base: process.env.VUE_ROUTER_BASE,
  16. scrollBehavior: () => ({ y: 0 }),
  17. routes
  18. })
  19. export default Router