Skip to content

Commit

Permalink
feat: Allow to override router configuration (closes #408)
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Dec 18, 2024
1 parent 718e39a commit 203bc65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { route } from 'quasar/wrappers'
import { createRouter, createMemoryHistory, createWebHistory, createWebHashHistory } from 'vue-router'
import routeConfig from './routes'
import config from 'config'
import { Store } from '@kalisio/kdk/core.client'
import * as utils from '../utils'

Expand All @@ -26,7 +26,7 @@ export default route(function (/* { store, ssrContext } */) {

const router = createRouter({
scrollBehavior: () => ({ left: 0, top: 0 }),
routes: utils.buildRoutes(routeConfig),
routes: utils.buildRoutes(config.routes),

// Leave this as is and make changes in quasar.conf.js instead!
// quasar.conf.js -> build -> vueRouterMode
Expand All @@ -40,7 +40,7 @@ export default route(function (/* { store, ssrContext } */) {
step: 0,
play: false
}
}, utils.buildTours(routeConfig)))
}, utils.buildTours(config.routes)))

return router
})
Expand Down

0 comments on commit 203bc65

Please sign in to comment.