fix: rollback
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
a5d032f022
commit
81f1c447ad
|
@ -3,9 +3,7 @@ import { defineStore } from 'pinia';
|
||||||
|
|
||||||
export const useStateQueryStore = defineStore('stateQueryStore', () => {
|
export const useStateQueryStore = defineStore('stateQueryStore', () => {
|
||||||
const queries = ref(new Set());
|
const queries = ref(new Set());
|
||||||
const route = computed(() =>
|
|
||||||
Array.from(queries.value).find((query) => query?.fullPath)
|
|
||||||
);
|
|
||||||
function add(query) {
|
function add(query) {
|
||||||
queries.value.add(query);
|
queries.value.add(query);
|
||||||
return query;
|
return query;
|
||||||
|
@ -29,6 +27,5 @@ export const useStateQueryStore = defineStore('stateQueryStore', () => {
|
||||||
remove,
|
remove,
|
||||||
queries,
|
queries,
|
||||||
reset,
|
reset,
|
||||||
route,
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue