grasscutterTools/plop-tpls/store/index.hbs
2022-05-02 18:38:10 +08:00

11 lines
329 B
Handlebars

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)
}