liucf 5 年之前
父节点
当前提交
6e1fcf4d4d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/ChronicInfo/index.jsx

+ 2 - 1
src/components/ChronicInfo/index.jsx

@@ -148,7 +148,8 @@ class ChronicInfo extends React.Component{
     const {showHide} = this.props;
     const {showHide} = this.props;
     if(!showHide.isPop){
     if(!showHide.isPop){
       //量表结果,判断需要计算并且dom中有值才能加入病例记录
       //量表结果,判断需要计算并且dom中有值才能加入病例记录
-      const res = this.$result.current&&this.$result.current.innerText;
+      // innerHTML 兼容FF26
+      const res = this.$result.current&&(this.$result.current.innerText||this.$result.current.innerHTML);
       if(!isClose&&(this.$result.current&&!res)){
       if(!isClose&&(this.$result.current&&!res)){
         Notify.info("请先计算量表结果!");
         Notify.info("请先计算量表结果!");
         return ;
         return ;