From 1a3931333ca497ba6381da171b799b9c04a852f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E9=A3=9E?= Date: Tue, 23 Jan 2024 17:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E4=B8=8A=E4=BC=A0=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visit/crc-upload/components/uploadDicomFiles2.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue index 7613cd67..072e4e95 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue @@ -1274,9 +1274,13 @@ export default { let blob = await scope.dicomToPng(fileId, v.instanceList[0].imageColumns, v.instanceList[0].imageRows) let thumbnailPath = `/${params.trialId}/Image/${params.siteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.png` let OSSclient = scope.OSSclient - let seriesRes = await OSSclient.put(thumbnailPath, blob) - if (seriesRes && seriesRes.url) { - o.ImageResizePath = scope.$getObjectName(seriesRes.url) + try { + let seriesRes = await OSSclient.put(thumbnailPath, blob) + if (seriesRes && seriesRes.url) { + o.ImageResizePath = scope.$getObjectName(seriesRes.url) + } + } catch (e) { + console.log(e) } } }