13 lines
223 B
TypeScript
13 lines
223 B
TypeScript
![]() |
import { defineStore } from 'pinia';
|
||
|
|
||
|
export const items = defineStore({
|
||
|
id: 'items',
|
||
|
state() {
|
||
|
return { list: [], count: 10 };
|
||
|
},
|
||
|
getters: {
|
||
|
double: (state: any) => state.count * 2,
|
||
|
},
|
||
|
actions: {},
|
||
|
});
|