Vanya Guk Asked:2020-10-01 03:48:20 +0000 UTC2020-10-01 03:48:20 +0000 UTC 2020-10-01 03:48:20 +0000 UTC 如何更新减速器状态? 772 如何更新嵌套的减速器的状态,如下所示: const initialState = { filter_models: { adventure_state: null, type_id: null, bodies: [], brands: [], models: [] } } redux 1 个回答 Voted Best Answer mix 2020-10-01T03:59:40Z2020-10-01T03:59:40Z 初级: const newState = JSON.parse(JSON.stringify(state)); newState.filter_models.brands.push('Apple'); return newState;
初级: