Commit 98c49da3 by Administrator

增加判断,如果某页weFlowerCustomerRels数组为空,会报错,整个页面无法渲染

1 parent be9ad348
......@@ -398,12 +398,12 @@ export default {
></el-table-column>
<el-table-column prop="userName" label="添加人(首位)" align="center">
<template slot-scope="scope">{{
scope.row.weFlowerCustomerRels[0].userName
scope.row.weFlowerCustomerRels[0]?scope.row.weFlowerCustomerRels[0].userName:""
}}</template>
</el-table-column>
<el-table-column prop="createTime" label="添加时间" align="center">
<template slot-scope="scope">{{
scope.row.weFlowerCustomerRels[0].createTime
scope.row.weFlowerCustomerRels[0]?scope.row.weFlowerCustomerRels[0].createTime:""
}}</template>
</el-table-column>
<el-table-column prop="address" label="标签" align="center">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!