layar baru antrean klinik dan masuk

This commit is contained in:
Fanrouver
2026-01-08 12:44:40 +07:00
parent 96b10b9e75
commit 2d3d589fe6
18 changed files with 3253 additions and 69 deletions

No files matched your search

+11
View File
@@ -120,6 +120,17 @@ export const useLoketStore = defineStore('loket', () => {
key: 'loket-store-state',
storage: typeof window !== 'undefined' ? localStorage : undefined,
paths: ['loketData'],
serializer: {
deserialize: JSON.parse,
serialize: JSON.stringify,
},
restore: (value) => {
// Ensure loketData is always an array
if (value && value.loketData && !Array.isArray(value.loketData)) {
value.loketData = [];
}
return value;
},
},
});