Initial commit

This commit is contained in:
josch
2024-04-14 13:13:29 +02:00
commit a5e935f66f
43 changed files with 11439 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { defineStore } from 'pinia';
export const useCounterStore = defineStore('counter', {
state: () => ({
counter: 0,
}),
getters: {
doubleCount: (state) => state.counter * 2,
},
actions: {
increment() {
this.counter++;
},
},
});