refactor(client-side): create pinia store for autosave information
This commit is contained in:
parent
8bda275244
commit
00d4467b87
13
stores/autosaveStore.ts
Normal file
13
stores/autosaveStore.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export interface autoSavePayload {
|
||||
draftId?: number;
|
||||
}
|
||||
|
||||
export const useAutoSaveStore = defineStore("autosave", {
|
||||
state() {
|
||||
return {
|
||||
draftId: undefined,
|
||||
} as autoSavePayload;
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue
Block a user