Showing
5 changed files
with
3 additions
and
3 deletions
... | @@ -82,12 +82,12 @@ const Html = ({ visible, onCancel, callback }) => { | ... | @@ -82,12 +82,12 @@ const Html = ({ visible, onCancel, callback }) => { |
82 | 82 | ||
83 | beforeUpload: file => { | 83 | beforeUpload: file => { |
84 | console.log(file); | 84 | console.log(file); |
85 | - if(file.name.indexOf('.html')>0) | 85 | + if((file.name.indexOf('.jpg')>0) || (file.name.indexOf('.png')>0) ) |
86 | { | 86 | { |
87 | setFileList([file]); | 87 | setFileList([file]); |
88 | }else { | 88 | }else { |
89 | setFileList([]); | 89 | setFileList([]); |
90 | - message.info("Html 형식의 파일이 아닙니다."); | 90 | + message.info("그림 형식의 파일이 아닙니다."); |
91 | } | 91 | } |
92 | return false; | 92 | return false; |
93 | 93 | ... | ... |
... | @@ -324,7 +324,7 @@ const fetchCheckQno = async(qno) => { | ... | @@ -324,7 +324,7 @@ const fetchCheckQno = async(qno) => { |
324 | <ImageEditor | 324 | <ImageEditor |
325 | includeUI={{ | 325 | includeUI={{ |
326 | loadImage: { | 326 | loadImage: { |
327 | - path: 'img/sampleImage.jpg', | 327 | + path: '../.img/1.jpg', |
328 | name: 'SampleImage' | 328 | name: 'SampleImage' |
329 | }, | 329 | }, |
330 | theme: myTheme, | 330 | theme: myTheme, | ... | ... |
mypro/client/src/img/1.jpg
0 → 100644
760 KB
mypro/client/src/img/2.jpg
0 → 100644
975 KB
mypro/client/src/img/3.jpg
0 → 100644
450 KB
-
Please register or login to post a comment