refactor(client-side): add autosave store actions

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2023-10-12 23:01:43 -04:00
parent 20b69c82da
commit 5d600ef9da
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -2,12 +2,17 @@ import { defineStore } from "pinia";
export interface autoSavePayload {
draftId?: number;
fetchId: number;
}
export const useAutoSaveStore = defineStore("autosave", {
state() {
return {
draftId: undefined,
fetchId: 1,
} as autoSavePayload;
},
actions: {
async doSomething(did: number) {},
},
});