qdadm 0.15.0 → 0.15.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 +4 -3
package/package.json
CHANGED
package/src/kernel/Kernel.js
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
import { createApp } 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'
|
|
@@ -61,6 +61,7 @@ export class Kernel {
|
|
|
61
61
|
* @param {string} options.homeRoute - Route name for home redirect (or object { name, component })
|
|
62
62
|
* @param {Array} options.coreRoutes - Additional routes as layout children (before module routes)
|
|
63
63
|
* @param {string} options.basePath - Base path for router (e.g., '/dashboard/')
|
|
64
|
+
* @param {boolean} options.hashMode - Use hash-based routing (/#/path) for static hosting
|
|
64
65
|
* @param {object} options.app - App config { name, shortName, version, logo, theme }
|
|
65
66
|
* @param {object} options.features - Feature toggles { auth, poweredBy }
|
|
66
67
|
* @param {object} options.primevue - PrimeVue config { plugin, theme, options }
|
|
@@ -101,7 +102,7 @@ export class Kernel {
|
|
|
101
102
|
* Create Vue Router with auth guard
|
|
102
103
|
*/
|
|
103
104
|
_createRouter() {
|
|
104
|
-
const { pages, homeRoute, coreRoutes, basePath, authAdapter } = this.options
|
|
105
|
+
const { pages, homeRoute, coreRoutes, basePath, hashMode, authAdapter } = this.options
|
|
105
106
|
|
|
106
107
|
// Validate required pages
|
|
107
108
|
if (!pages?.login) {
|
|
@@ -144,7 +145,7 @@ export class Kernel {
|
|
|
144
145
|
]
|
|
145
146
|
|
|
146
147
|
this.router = createRouter({
|
|
147
|
-
history: createWebHistory(basePath),
|
|
148
|
+
history: hashMode ? createWebHashHistory(basePath) : createWebHistory(basePath),
|
|
148
149
|
routes
|
|
149
150
|
})
|
|
150
151
|
|