22 lines
299 B
JavaScript
22 lines
299 B
JavaScript
![]() |
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
|
||
|
};
|