go-view/plop/store-template/index.hbs
2022-01-31 23:37:08 +08:00

11 lines
375 B
Handlebars

import { defineStore } from 'pinia'
import { {{upperDataName}}StoreType } from './{{name}}Store.d'
import { setLocalStorage, getLocalStorage } from '@/utils'
import { StorageEnum } from '@/enums/storageEnum'
export const use{{upperDataName}}StoreStore = defineStore({
id: 'use{{upperDataName}}Store',
state: (): {{name}}StoreType => ({}),
getters: {},
actions: {}
})