ソースを参照

其他史高血压双击编辑bug修改2864

zhouna 5 年 前
コミット
1f16ae4e09
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/store/actions/otherHistory.js

+ 2 - 1
src/store/actions/otherHistory.js

@@ -169,7 +169,8 @@ export function changeTextLabel(state,action) {
           localStorage.setItem('radio'+item.id,JSON.stringify([li]));
         }
         //取消原选中状态
-        item.questionDetailList.find((it)=>it.selected==true).selected=false;
+        const sltItem = item.questionDetailList.find((it)=>it.selected==true);
+        sltItem?sltItem.selected=false:'';
       }
       item.labelPrefix = prefix||'';
       item.labelSuffix = suffix||'';