File tree Expand file tree Collapse file tree
packages/modules/web_themes/koala/source/src/stores Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { store } from 'quasar/wrappers' ;
22import { createPinia } from 'pinia' ;
3- import { Router } from 'vue-router' ;
43
54/*
65 * When adding new properties to stores, you should also
@@ -11,14 +10,9 @@ declare module 'pinia' {
1110 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1211 export interface PiniaCustomProperties {
1312 // add your custom properties here, if any
14- readonly router : Router | null ;
1513 }
1614}
1715
18- function RouterPiniaPlugin ( ) {
19- return { router : null as Router | null } ;
20- }
21-
2216/*
2317 * If not building with SSR mode, you can
2418 * directly export the Store instantiation;
@@ -33,7 +27,6 @@ export default store((/* { ssrContext } */) => {
3327
3428 // You can add Pinia plugins here
3529 // pinia.use(SomePiniaPlugin)
36- pinia . use ( RouterPiniaPlugin ) ;
3730
3831 return pinia ;
3932} ) ;
Original file line number Diff line number Diff line change @@ -121,8 +121,6 @@ export const useMqttStore = defineStore('mqtt', () => {
121121 progress : true ,
122122 closeBtn : 'Seite neu laden' ,
123123 onDismiss : ( ) => {
124- // not functional in Safari browser?
125- // this.router.go(0);
126124 location . reload ( ) ;
127125 } ,
128126 } ) ;
You can’t perform that action at this time.
0 commit comments