cache persistant
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { defineStore } from "pinia";
|
import { DefineStoreOptions, defineStore } from "pinia";
|
||||||
|
|
||||||
interface CacheItem {
|
interface CacheItem {
|
||||||
url: string;
|
url: string;
|
||||||
@@ -54,4 +54,8 @@ export const useCacheStore = defineStore({
|
|||||||
this.cache = [];
|
this.cache = [];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
persist: true,
|
||||||
|
} as DefineStoreOptions<string, unknown, unknown, unknown> & {
|
||||||
|
persist?: boolean;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user