fix: rollback
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-11-13 17:45:02 +01:00
parent a5d032f022
commit 81f1c447ad
1 changed files with 1 additions and 4 deletions

View File

@ -3,9 +3,7 @@ import { defineStore } from 'pinia';
export const useStateQueryStore = defineStore('stateQueryStore', () => {
const queries = ref(new Set());
const route = computed(() =>
Array.from(queries.value).find((query) => query?.fullPath)
);
function add(query) {
queries.value.add(query);
return query;
@ -29,6 +27,5 @@ export const useStateQueryStore = defineStore('stateQueryStore', () => {
remove,
queries,
reset,
route,
};
});