Uprava error stranek, indexu

This commit is contained in:
Michal Kváček
2023-12-19 20:34:06 +01:00
parent 9aebc352cd
commit 966d582b63
28 changed files with 100 additions and 62 deletions
+4 -1
View File
@@ -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;
};