This commit is contained in:
parent
a6c6ceca29
commit
23f51f0d66
|
@ -0,0 +1,8 @@
|
|||
import { defineStore } from 'pinia';
|
||||
export const userStore = defineStore('store', {
|
||||
state: () => ({
|
||||
count: 0,
|
||||
}),
|
||||
persist: true
|
||||
|
||||
});
|
|
@ -1,12 +0,0 @@
|
|||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useStore = defineStore('store', {
|
||||
state: () => ({
|
||||
count: 0,
|
||||
}),
|
||||
actions: {
|
||||
increment() {
|
||||
this.count++;
|
||||
},
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue