소스 검색

fix #7897 保证用户粘贴时粘贴板为图片才会自动展开进行图片上床逻辑

Roxas 4 년 전
부모
커밋
34189cef9c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      src/components/Editor/index.js

+ 1
- 0
src/components/Editor/index.js 파일 보기

@@ -180,6 +180,7 @@ class Editor extends React.Component {
180 180
           break;
181 181
         }
182 182
       }
183
+      if (file === null) return;
183 184
     }
184 185
     this.setState({
185 186
       uploadVisible: true