-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xuhongbin
committed
Aug 9, 2022
1 parent
2b2ca47
commit 82ec73f
Showing
7 changed files
with
114 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Vuex from 'vuex' | ||
export const countStore = new Vuex.Store({ | ||
state: { | ||
count: 0, | ||
}, | ||
mutations: { | ||
increment(state) { | ||
state.count++ | ||
}, | ||
}, | ||
}) | ||
export default countStore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import Vue from 'vue' | ||
import App from './App' | ||
|
||
import Vuex from 'vuex' | ||
Vue.use(Vuex) | ||
import store from '@v2b/store' | ||
console.log('store', store) | ||
Vue.config.productionTip = false | ||
// | ||
// import VueCompositionAPI from '@vue/composition-api' | ||
// Vue.use(VueCompositionAPI) | ||
// | ||
|
||
new Vue({ | ||
store, | ||
render: h => h(App), | ||
}).$mount('#emp-root') |