Commit cf69e42c by ext.wangyuman1

订单

1 parent 9ecca5fd
......@@ -561,7 +561,7 @@ export default {
<el-table-column
label="订单金额(元)"
align="center"
prop="address"
prop="totalPrice"
width="180"
></el-table-column>
<el-table-column
......
......@@ -290,8 +290,10 @@ export default {
this.loading = true
getList(this.query)
.then(({ rows, total }) => {
rows[0].isFirst = true
rows[rows.length - 1].isLast = true
if (rows[0]) {
rows[0].isFirst = true
rows[rows.length - 1].isLast = true
}
this.list = rows
this.total = Number(total)
this.loading = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!