qdadm 0.40.1 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/kernel/Kernel.js +8 -2
package/package.json
CHANGED
package/src/kernel/Kernel.js
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
import { createApp, h, defineComponent } from 'vue'
|
|
41
41
|
import { createPinia } from 'pinia'
|
|
42
|
-
import { createRouter, createWebHistory } from 'vue-router'
|
|
42
|
+
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
|
|
43
43
|
import ToastService from 'primevue/toastservice'
|
|
44
44
|
import ConfirmationService from 'primevue/confirmationservice'
|
|
45
45
|
import Tooltip from 'primevue/tooltip'
|
|
@@ -88,6 +88,7 @@ export class Kernel {
|
|
|
88
88
|
* @param {string} options.homeRoute - Route name for home redirect (or object { name, component })
|
|
89
89
|
* @param {Array} options.coreRoutes - Additional routes as layout children (before module routes)
|
|
90
90
|
* @param {string} options.basePath - Base path for router (e.g., '/dashboard/')
|
|
91
|
+
* @param {boolean} options.hashMode - Use hash-based routing (for GitHub Pages, static hosting)
|
|
91
92
|
* @param {object} options.app - App config { name, shortName, version, logo, theme }
|
|
92
93
|
* @param {object} options.features - Feature toggles { auth, poweredBy }
|
|
93
94
|
* @param {object} options.primevue - PrimeVue config { plugin, theme, options }
|
|
@@ -649,8 +650,13 @@ export class Kernel {
|
|
|
649
650
|
// Insert 404 route at the end of top-level routes
|
|
650
651
|
routes.push(notFoundRoute)
|
|
651
652
|
|
|
653
|
+
const { hashMode } = this.options
|
|
654
|
+
const history = hashMode
|
|
655
|
+
? createWebHashHistory(basePath)
|
|
656
|
+
: createWebHistory(basePath)
|
|
657
|
+
|
|
652
658
|
this.router = createRouter({
|
|
653
|
-
history
|
|
659
|
+
history,
|
|
654
660
|
routes
|
|
655
661
|
})
|
|
656
662
|
}
|