refactor: move composables, stores, plugins under app/ srcDir; fix server path resolution
This commit is contained in:
parent
8892d2e2a5
commit
e1daaede27
7 changed files with 5 additions and 3 deletions
|
|
@ -1,18 +0,0 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const useCounterStore = defineStore("counter", {
|
||||
state: () => ({
|
||||
count: 0,
|
||||
}),
|
||||
getters: {
|
||||
doubleCount: (state) => state.count * 2,
|
||||
},
|
||||
actions: {
|
||||
increment() {
|
||||
this.count += 1;
|
||||
},
|
||||
},
|
||||
persist: {
|
||||
paths: ["count"],
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue