fix but failed
This commit is contained in:
parent
03cf265eff
commit
e2fb33bdc5
20 changed files with 74 additions and 98 deletions
|
@ -28,7 +28,7 @@ export default class BackgroundComponent {
|
|||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line complexity
|
||||
// eslint-disable-next-line complexity, max-lines-per-function
|
||||
exec(operation, tab) {
|
||||
let tabState = this.store.getState().tab;
|
||||
|
||||
|
|
|
@ -7,9 +7,8 @@ const defaultState = {
|
|||
export default function reducer(state = defaultState, action = {}) {
|
||||
switch (action.type) {
|
||||
case actions.FIND_SET_KEYWORD:
|
||||
return Object.assign({}, state, {
|
||||
keyword: action.keyword,
|
||||
});
|
||||
return { ...state,
|
||||
keyword: action.keyword, };
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
|
|
@ -10,9 +10,8 @@ const defaultState = {
|
|||
};
|
||||
|
||||
export default function reducer(state = defaultState, action = {}) {
|
||||
return Object.assign({}, state, {
|
||||
return { ...state,
|
||||
setting: settingReducer(state.setting, action),
|
||||
find: findReducer(state.find, action),
|
||||
tab: tabReducer(state.tab, action),
|
||||
});
|
||||
tab: tabReducer(state.tab, action), };
|
||||
}
|
||||
|
|
|
@ -12,10 +12,8 @@ export default function reducer(state = defaultState, action = {}) {
|
|||
};
|
||||
case actions.SETTING_SET_PROPERTY:
|
||||
return {
|
||||
value: Object.assign({}, state.value, {
|
||||
properties: Object.assign({}, state.value.properties,
|
||||
{ [action.name]: action.value })
|
||||
})
|
||||
value: { ...state.value,
|
||||
properties: { ...state.value.properties, [action.name]: action.value }}
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
|
|
Reference in a new issue