mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 07:36:44 +08:00
fix(risk):修复添加风险列表时的类型检查问题
- 在检查 addRiskCodes 是否包含 productCode 前,增加对其是否为数组的判断 - 避免因 addRiskCodes为非数组类型导致的运行时错误
This commit is contained in:
@@ -86,7 +86,7 @@ export default {
|
||||
let addtionRiskLst = JSON.parse(localStorage.addtionRiskLst)
|
||||
let currentMainRiskInfo = this.getCurrentMainRiskInfo()
|
||||
addtionRiskLst.forEach(item => {
|
||||
if (addRiskCodes.includes(item.productCode)) {
|
||||
if (Array.isArray(addRiskCodes) && addRiskCodes.includes(item.productCode)) {
|
||||
item.isHidden = 1
|
||||
} else {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user