this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix pinia store

+9 -3
+2 -2
src/app.ts
··· 1 + import { pinia } from "@/store/store"; 1 2 import { defineApp } from "iles"; 2 - import { createPinia } from "pinia"; 3 3 4 4 export default defineApp({ 5 5 enhanceApp({ app }) { 6 - app.use(createPinia()); 6 + app.use(pinia); 7 7 }, 8 8 });
+4 -1
src/modules/flow/store/useProductionFlow.store.ts
··· 1 + import { pinia } from "@/store/store"; 1 2 import { defineStore } from "pinia"; 2 3 3 4 interface Step { ··· 20 21 ], 21 22 }; 22 23 23 - export const useProductionFlow = defineStore("production-flow", { 24 + const useStore = defineStore("production-flow", { 24 25 state: () => ({ ...initialState }), 25 26 actions: { 26 27 addStep(step: Step) { ··· 28 29 }, 29 30 }, 30 31 }); 32 + 33 + export const useProductionFlow = () => useStore(pinia);
+3
src/store/store.ts
··· 1 + import { createPinia } from "pinia"; 2 + 3 + export const pinia = createPinia();