mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-13 22:05:15 -05:00
fix: clear cached store data on logout to prevent user data leakage (#6665)
This commit is contained in:
@@ -6,6 +6,11 @@ import { useUserApi } from "~/composables/api";
|
||||
const store: Ref<IngredientUnit[]> = ref([]);
|
||||
const loading = ref(false);
|
||||
|
||||
export function resetUnitStore() {
|
||||
store.value = [];
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
export const useUnitData = function () {
|
||||
return useData<IngredientUnit>({
|
||||
id: "",
|
||||
|
||||
Reference in New Issue
Block a user