import Cache from '@/utils/cache'; const state = { eyeType: Cache.get('eyeType') || true, }; const mutations = { SET_EYE_TYPE(state){ state.eyeType=!state.eyeType; Cache.set('eyeType', state.eyeType); } }; const actions = { }; export default { state, mutations, actions };