2023-10-10 22:16:30 -04:00
|
|
|
import { defineStore } from "pinia";
|
|
|
|
|
|
|
|
export interface autoSavePayload {
|
|
|
|
draftId?: number;
|
2023-10-12 23:01:43 -04:00
|
|
|
fetchId: number;
|
2023-10-10 22:16:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const useAutoSaveStore = defineStore("autosave", {
|
|
|
|
state() {
|
|
|
|
return {
|
|
|
|
draftId: undefined,
|
2023-10-12 23:01:43 -04:00
|
|
|
fetchId: 1,
|
2023-10-10 22:16:30 -04:00
|
|
|
} as autoSavePayload;
|
|
|
|
},
|
2023-10-12 23:01:43 -04:00
|
|
|
actions: {
|
|
|
|
async doSomething(did: number) {},
|
|
|
|
},
|
2023-10-10 22:16:30 -04:00
|
|
|
});
|