From 1614305b6bb56450f2d0bddd0961eab46642138e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Wed, 31 Jan 2024 17:44:10 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=8F=92=E5=85=A5=E7=AD=BE=E5=AE=A1?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/page1/saicComponents/Init.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/page1/saicComponents/Init.vue b/src/pages/page1/saicComponents/Init.vue index ec9f04f..5998216 100644 --- a/src/pages/page1/saicComponents/Init.vue +++ b/src/pages/page1/saicComponents/Init.vue @@ -2203,9 +2203,11 @@ export default { oRunUserName.SetPosition(48) // 手写章图片 const oRunImage = Api.CreateRun() - const url = `${Asc.scope.downloadUrl}/laws-sinotruk/sys/common/downloadWithoutToken/${user.avatarFileId}` - const oDrawingImg = Api.CreateImage(url, 53 * 36000, 18.4 * 36000) - oRunImage.AddDrawing(oDrawingImg) + if (user.avatarFileId) { + const url = `${Asc.scope.downloadUrl}/laws-sinotruk/sys/common/downloadWithoutToken/${user.avatarFileId}` + const oDrawingImg = Api.CreateImage(url, 53 * 36000, 18.4 * 36000) + oRunImage.AddDrawing(oDrawingImg) + } // 签署日期 const oRunTime = Api.CreateRun() oRunTime.AddText(' 签署日期:' + user.signTime)