grasscutterTools/plop-tpls/store/index.hbs

11 lines
329 B
Handlebars
Raw Normal View History

2022-05-02 10:38:10 +00:00
import { defineStore } from 'pinia'
import piniaStore from '@/store/index'
export const use{{ properCase name }}Store = defineStore('{{ camelCase name }}', {
state: () => ({}),
getters: {},
actions: {}
})
export function use{{ properCase name }}OutsideStore() {
return use{{ properCase name }}Store(piniaStore)
}