瀏覽代碼

其他史高血压双击编辑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||'';