Skip to content

Commit cd3c17c

Browse files
authored
chore: add getters:{} to cli-plugin-vuex template (#6753)
1 parent 5d6b9d3 commit cd3c17c

File tree

2 files changed

+4
-0
lines changed
  • packages/@vue/cli-plugin-vuex/generator

2 files changed

+4
-0
lines changed

packages/@vue/cli-plugin-vuex/generator/template-vue3/src/store/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { createStore } from 'vuex'
33
export default createStore({
44
state: {
55
},
6+
getters: {
7+
},
68
mutations: {
79
},
810
actions: {

packages/@vue/cli-plugin-vuex/generator/template/src/store/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Vue.use(Vuex)
66
export default new Vuex.Store({
77
state: {
88
},
9+
getters: {
10+
},
911
mutations: {
1012
},
1113
actions: {

0 commit comments

Comments
 (0)