|
@@ -2340,7 +2340,7 @@ const handleHomeworkSubmit = async () => {
|
|
|
}
|
|
}
|
|
|
catch (html2canvasError) {
|
|
catch (html2canvasError) {
|
|
|
console.log('html2canvas失败,尝试html-to-image:', html2canvasError)
|
|
console.log('html2canvas失败,尝试html-to-image:', html2canvasError)
|
|
|
- message.error(lang.ssHtml2canvasFailed + html2canvasError)
|
|
|
|
|
|
|
+ // message.error(lang.ssHtml2canvasFailed + html2canvasError)
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
// 回退到html-to-image
|
|
// 回退到html-to-image
|
|
@@ -2358,7 +2358,7 @@ const handleHomeworkSubmit = async () => {
|
|
|
console.log('使用html-to-image截图成功')
|
|
console.log('使用html-to-image截图成功')
|
|
|
}
|
|
}
|
|
|
catch (htmlToImageError) {
|
|
catch (htmlToImageError) {
|
|
|
- console.log('html-to-image也失败了,使用canvas绘制方案:', htmlToImageError)
|
|
|
|
|
|
|
+ console.log('html-to-image也失败了', htmlToImageError)
|
|
|
message.error(lang.ssHtmlToImageFailed + htmlToImageError)
|
|
message.error(lang.ssHtmlToImageFailed + htmlToImageError)
|
|
|
message.error(lang.ssShotFail)
|
|
message.error(lang.ssShotFail)
|
|
|
return
|
|
return
|