版本初始化
This commit is contained in:
41
src/store/index.js
Normal file
41
src/store/index.js
Normal file
@@ -0,0 +1,41 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import local from '../utils/local.js'
|
||||
Vue.use(Vuex)
|
||||
|
||||
const classInfo = {
|
||||
namespaced: true,
|
||||
state: {
|
||||
dataTable: [],
|
||||
batch: [] // 储存批量设备 - id
|
||||
},
|
||||
getters: {
|
||||
|
||||
},
|
||||
mutations: { // 修改
|
||||
saveClassInfo (state, list) { state.dataTable = list },
|
||||
// 储存批量设备 - id
|
||||
getBatch (state, Batch) {
|
||||
state.batch = Batch
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
},
|
||||
getters: {
|
||||
|
||||
},
|
||||
mutations: { // 修改
|
||||
|
||||
},
|
||||
actions: {
|
||||
},
|
||||
modules: {
|
||||
classInfo // 品系 , 品种 , 来源类型
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user