Commit cae67579 by hujun

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

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