Skip to content

Commit 5038f57

Browse files
committed
75
1 parent 2fb5749 commit 5038f57

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

package-lock.json

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"core-js": "^3.6.5",
1313
"lodash": "^4.17.21",
1414
"vue": "^3.0.0",
15-
"vue-router": "^4.0.4"
15+
"vue-router": "^4.0.4",
16+
"vuex": "^4.0.0"
1617
},
1718
"devDependencies": {
1819
"@vue/cli-plugin-babel": "~4.5.0",

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createApp } from 'vue'
22
import App from './App.vue'
33
import router from './router';
4+
import store from './store';
45

5-
createApp(App).use(router).mount('#app')
6+
createApp(App).use(store).use(router).mount('#app')

src/store/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { createStore } from 'vuex';
2+
3+
export default createStore({
4+
state: {
5+
6+
}
7+
});

0 commit comments

Comments
 (0)