created dsahboard project vue3 empty for now

This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-24 09:22:45 +02:00
parent fb45c41a93
commit 1ad4663e6e
32 changed files with 7494 additions and 0 deletions

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 }
})