feat: 续上,删除多余文件
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
// src/store/useCountStore.ts
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const useCountStore = defineStore(
|
||||
'count',
|
||||
() => {
|
||||
const count = ref(0)
|
||||
const increment = () => {
|
||||
count.value++
|
||||
}
|
||||
const decrement = () => {
|
||||
count.value--
|
||||
}
|
||||
const reset = () => {
|
||||
count.value = 0
|
||||
}
|
||||
return {
|
||||
count,
|
||||
decrement,
|
||||
increment,
|
||||
reset,
|
||||
}
|
||||
},
|
||||
{
|
||||
persist: true,
|
||||
},
|
||||
)
|
||||
@@ -16,4 +16,3 @@ export default store
|
||||
|
||||
// 模块统一导出
|
||||
export * from './user'
|
||||
export * from './count'
|
||||
|
||||
Reference in New Issue
Block a user