Initial generated code

a la `npm create vue@latest`

using lts/iron
This commit is contained in:
Lance Edgar 2024-06-08 10:04:59 -05:00
commit 397b7b02e5
25 changed files with 664 additions and 0 deletions

12
src/stores/counter.js 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 }
})