refactor(client-side): add autosave store actions
This commit is contained in:
parent
20b69c82da
commit
5d600ef9da
@ -2,12 +2,17 @@ import { defineStore } from "pinia";
|
|||||||
|
|
||||||
export interface autoSavePayload {
|
export interface autoSavePayload {
|
||||||
draftId?: number;
|
draftId?: number;
|
||||||
|
fetchId: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useAutoSaveStore = defineStore("autosave", {
|
export const useAutoSaveStore = defineStore("autosave", {
|
||||||
state() {
|
state() {
|
||||||
return {
|
return {
|
||||||
draftId: undefined,
|
draftId: undefined,
|
||||||
|
fetchId: 1,
|
||||||
} as autoSavePayload;
|
} as autoSavePayload;
|
||||||
},
|
},
|
||||||
|
actions: {
|
||||||
|
async doSomething(did: number) {},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user