import {TEST_DATA} from '@/actions/index' let Notice = (state = {code:''},action) => { switch (action.type) { case TEST_DATA: return { data: action.data, code: 'success' } default: return state; } } export default Notice;