This commit is contained in:
Jay
2017-03-24 11:22:18 +08:00
parent 7aed87a053
commit c5236f9ad3
6 changed files with 115 additions and 11 deletions
+12 -3
View File
@@ -1,7 +1,16 @@
const sysinfoReducer = (state = {
const defState = () => ({
network: {},
time: ''
}, action) => {
time: '',
dashboard: {
time: '',
ip: '',
version: '',
di: [],
leone: []
}
})
const sysinfoReducer = (state = defState(), action) => {
switch(action.type) {
case 'network_info':
return {...state, network: action.network};