feat: 更换应用框架为ElectronFofge

This commit is contained in:
duanshuwen
2025-10-12 14:12:29 +08:00
parent 02b85f3251
commit ebac04b786
67 changed files with 7935 additions and 6104 deletions

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

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