first commit
This commit is contained in:
12
l-im-app-imooc-master/l-im-app-imooc/store/index.js
Normal file
12
l-im-app-imooc-master/l-im-app-imooc/store/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
import common from '@/store/modules/common.js';
|
||||
|
||||
export default new Vuex.Store({
|
||||
modules:{
|
||||
common
|
||||
}
|
||||
})
|
||||
10
l-im-app-imooc-master/l-im-app-imooc/store/modules/common.js
Normal file
10
l-im-app-imooc-master/l-im-app-imooc/store/modules/common.js
Normal file
@@ -0,0 +1,10 @@
|
||||
export default {
|
||||
state:{
|
||||
keyboardHeight:0
|
||||
},
|
||||
mutations:{
|
||||
changeKeyboardHeight(state,h){
|
||||
state.keyboardHeight = h
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user