pinia添加更新逻辑

This commit is contained in:
lhj
2024-10-02 20:41:44 +08:00
parent 94670eed7d
commit 7089acacc2
2 changed files with 16 additions and 10 deletions

View File

@ -12,10 +12,11 @@ export const useCounterStore = defineStore('counter', () => {
function decrement() {
count.value--
}
function initSchema(value)
function initScheme(value)
{
scheme.value=value
}
return { count,scheme, doubleCount, increment,decrement,initSchema }
return { count,scheme, doubleCount, increment,decrement,initScheme }
})