jufubao-base 1.0.369 → 1.0.370

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.369",
3
+ "version": "1.0.370",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -1419,7 +1419,9 @@ export default {
1419
1419
  if(pay.length === 1) del = []
1420
1420
  res.buttons = del.concat(res.buttons || [])
1421
1421
  }
1422
- res.buttons = res.buttons.filter(btn => this.actionBtns.includes(btn.action))
1422
+
1423
+ //需要判断按钮是否存在
1424
+ res.buttons = (res.buttons||[]).filter(btn => this.actionBtns.includes(btn.action))
1423
1425
 
1424
1426
  if (res.product) {
1425
1427
  try {