Vue version

This commit is contained in:
2025-06-12 13:15:24 +02:00
parent 0a948d23d3
commit f32b59fef3
42 changed files with 5085 additions and 784 deletions

12
src/stores/counter.ts Normal file
View File

@@ -0,0 +1,12 @@
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', () => {
const count = ref(0)
const doubleCount = computed(() => count.value * 2)
function increment() {
count.value++
}
return { count, doubleCount, increment }
})