diff --git a/src/templates/stores.ts b/src/templates/stores.ts index 6c8c19b..9f5d673 100644 --- a/src/templates/stores.ts +++ b/src/templates/stores.ts @@ -1,8 +1,7 @@ import { normalizeName } from '../utils' const piniaOptionsContent = (name: string): string => { - return `export const use${normalizeName(name)}Store = defineStore({ - id: '${normalizeName(name)}Store', + return `export const use${normalizeName(name)}Store = defineStore('${normalizeName(name)}', { state: () => ({ }), actions: {} })