Uprava error stranek, indexu
This commit is contained in:
+4
-1
@@ -1,6 +1,6 @@
|
||||
import {defineStore} from 'pinia'
|
||||
import {ref} from "vue";
|
||||
import {paginationOffset} from "src/composables/pagination";
|
||||
import {paginationLimit, paginationOffset} from "src/composables/pagination";
|
||||
|
||||
export const useAppStore = defineStore('App', () => {
|
||||
const pageTitle = ref(null);
|
||||
@@ -8,10 +8,13 @@ export const useAppStore = defineStore('App', () => {
|
||||
const appStatus = ref(200); // TODO: toto nejspis nebude potreba!
|
||||
|
||||
const resetAfterRouteChange = () => {
|
||||
console.log("reset after route change");
|
||||
pageTitle.value = null;
|
||||
appStatus.value = 200;
|
||||
breadcrumbs.value = null;
|
||||
|
||||
// reset strankovani po prechodu na strankach
|
||||
paginationLimit.value = 10;
|
||||
paginationOffset.value = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user