Skip to content

Commit c8b0ba6

Browse files
committed
fix: store template & menu item
1 parent d76ce69 commit c8b0ba6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@
825825
},
826826
{
827827
"command": "nuxtr.directCreateStore",
828-
"title": "Create new Store",
828+
"title": "New Store...",
829829
"category": "Nuxtr",
830830
"when": "nuxtr.isNuxtProject"
831831
},

src/templates/stores.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const piniaContent = (name: string) => {
2-
return `
3-
import { defineStore } from 'pinia'
2+
return `import { defineStore } from 'pinia'
43
54
export const useMy${name.charAt(0).toUpperCase() + name.slice(1)}Store = defineStore({
65
id: 'my${name.charAt(0).toUpperCase() + name.slice(1)}Store',
@@ -9,16 +8,14 @@ export const useMy${name.charAt(0).toUpperCase() + name.slice(1)}Store = defineS
98
})
109
`}
1110

12-
const vuexContent = `
13-
export const state = () => ({ })
11+
const vuexContent = `export const state = () => ({ })
1412
1513
export const mutations = {}
1614
1715
export const actions = { }
1816
`
1917

20-
const appConfigContent = `
21-
export default defineAppConfig({
18+
const appConfigContent = `export default defineAppConfig({
2219
2320
})
2421
`

0 commit comments

Comments
 (0)