Commit f2e242e9 by zhangxw

sentry 报错修改

1 parent 537c8386
...@@ -27,8 +27,8 @@ Component({ ...@@ -27,8 +27,8 @@ Component({
// 校验历史订单二级流量方是否在配置的二级流量方数据中包含 不包含清空二级流量方重新选择 // 校验历史订单二级流量方是否在配置的二级流量方数据中包含 不包含清空二级流量方重新选择
let hasSubShopMerchantId = subShopMerchantList.some(item=> item.subMerchantId == orderObj.subShopMerchantId) let hasSubShopMerchantId = subShopMerchantList.some(item=> item.subMerchantId == orderObj.subShopMerchantId)
if (!hasSubShopMerchantId && subShopMerchantList.length) { if (!hasSubShopMerchantId && subShopMerchantList.length) {
delete orderObj.subShopMerchantId delete orderObj?.subShopMerchantId
delete orderObj.subShopMerchantName delete orderObj?.subShopMerchantName
} }
thisPage.setData({ thisPage.setData({
orderObj orderObj
...@@ -90,8 +90,8 @@ Component({ ...@@ -90,8 +90,8 @@ Component({
// 校验历史订单二级流量方是否在配置的二级流量方数据中包含 不包含清空二级流量方重新选择 // 校验历史订单二级流量方是否在配置的二级流量方数据中包含 不包含清空二级流量方重新选择
let hasSubShopMerchantId = data.some(item=> item.subMerchantId == orderObj.subShopMerchantId) let hasSubShopMerchantId = data.some(item=> item.subMerchantId == orderObj.subShopMerchantId)
if (!hasSubShopMerchantId) { if (!hasSubShopMerchantId) {
delete orderObj.subShopMerchantId delete orderObj?.subShopMerchantId
delete orderObj.subShopMerchantName delete orderObj?.subShopMerchantName
} }
thisPage.setData({ thisPage.setData({
requiredList, requiredList,
...@@ -104,8 +104,8 @@ Component({ ...@@ -104,8 +104,8 @@ Component({
}) })
} else { } else {
// 无二级流量方字段时 清空选择的二级流量方字段 // 无二级流量方字段时 清空选择的二级流量方字段
delete orderObj.subShopMerchantId delete orderObj?.subShopMerchantId
delete orderObj.subShopMerchantName delete orderObj?.subShopMerchantName
if (requiredList.includes('subShopMerchantId')) requiredList.splice(requiredList.indexOf('subShopMerchantId'), 1) if (requiredList.includes('subShopMerchantId')) requiredList.splice(requiredList.indexOf('subShopMerchantId'), 1)
thisPage.setData({ thisPage.setData({
isShowSubShopMerchant: false, isShowSubShopMerchant: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!