created dsahboard project vue3 empty for now
This commit is contained in:
parent
fb45c41a93
commit
1ad4663e6e
32 changed files with 7494 additions and 0 deletions
12
packages/Dashboard/src/stores/counter.ts
Normal file
12
packages/Dashboard/src/stores/counter.ts
Normal 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 }
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue