diff --git a/app/composables/counter.ts b/app/composables/counter.ts deleted file mode 100644 index 717add7..0000000 --- a/app/composables/counter.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { defineStore } from 'pinia' - -const useCounter = defineStore('counter', () => { - const count = ref(0) - - function increment() { - count.value++ - } - - return { - count, - increment, - } -}, { - persist: true, -}) - -export default useCounter diff --git a/app/pages/home/index.vue b/app/pages/home/index.vue index a2879bf..e544441 100644 --- a/app/pages/home/index.vue +++ b/app/pages/home/index.vue @@ -114,7 +114,6 @@ const changeLive=()=>{