fix : 修复需求上报预期成果形式回显

This commit is contained in:
2024-07-07 00:46:19 +08:00
parent 8feef06c11
commit 2a25942cdf
3 changed files with 7 additions and 7 deletions

View File

@@ -292,8 +292,8 @@ const filterDict = (data, value) => {
if (data === undefined || value === undefined) return;
let label = ''
let result = []
if (JSON.parse(value) instanceof Array) {
JSON.parse(value).forEach(item1 => {
if (value instanceof Array) {
value.forEach(item1 => {
data.find(item => {
if (item.value == item1) {
result.push(item.label)