Commit 867f9fe7 by 胡悦

提交

1 parent c381738a
......@@ -158,11 +158,11 @@ export default {
this.openMessage('获取门店商品采购占比失败')
return
}
const _dataList = res.data.dataList
if (!_dataList.length) {
if (!res.data || !res.data.dataList.length) {
this.isEmpty = true
return
}
const _dataList = res.data.dataList
_dataList.forEach((item, index) => {
this.dataList[index] = {
month: item.statDate,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!