Commit dbca99d7 authored by 刘殿昕's avatar 刘殿昕

数据空值处理

parent 3bb93329
......@@ -348,7 +348,8 @@ export default {
})
.then(({ data }) => {
if (data.success === 1) {
this.hotSeviceData = data.data.map((item, index) => ({
let arr = data.data || [];
this.hotSeviceData = arr.map((item, index) => ({
...item,
hotIndex: index + 1,
}));
......
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