mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
29
store/modules/resource.js
Normal file
29
store/modules/resource.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* 用于存储
|
||||
*/
|
||||
|
||||
const state = {
|
||||
resourceTab:0,//当前定位的tab
|
||||
courseList:[],
|
||||
articleList:[],
|
||||
qaList:[]
|
||||
}
|
||||
|
||||
const mutations={
|
||||
setResourceTab(state,idx){
|
||||
state.resourceTab=idx;
|
||||
},
|
||||
}
|
||||
|
||||
const actions = {
|
||||
setResourceTab({ commit },tabidx){
|
||||
commit('setResourceTab',tabidx);
|
||||
},
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations,
|
||||
actions
|
||||
}
|
||||
Reference in New Issue
Block a user