Commit 1cea3ae1 by 姜雷

修改获取设备为空值报错

parent b8fde7aa
...@@ -159,8 +159,12 @@ const mutations = { ...@@ -159,8 +159,12 @@ const mutations = {
state.consume.percentList = data.percentList; state.consume.percentList = data.percentList;
}, },
[GET_EUIPMENT_DATA]: (state, data) => { [GET_EUIPMENT_DATA]: (state, data) => {
state.consume.consumeHardVos = data.consumeHardVos; state.consume.consumeHardVos = data.consumeHardVos
state.consume.consumeAfterVos = data.consumeAfterVos; ? data.consumeHardVos
: [];
state.consume.consumeAfterVos = data.consumeAfterVos
? data.consumeAfterVos
: [];
}, },
[GET_REPORT_DATA]: (state, data) => { [GET_REPORT_DATA]: (state, data) => {
state.report.year = data.year; state.report.year = data.year;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment