From 74a6e3bf1eb9a4c8bfd41e99c5f00a09c3d85c72 Mon Sep 17 00:00:00 2001 From: "wu.jian2" Date: Wed, 27 Dec 2023 17:50:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=B0=81=E9=9D=A2=E5=9B=BE=E7=89=87=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E5=87=BA=E7=8E=B0=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8D=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E5=87=BA=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../packages/RemoteComponents/remoteComponentsList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/data-room-ui/packages/RemoteComponents/remoteComponentsList.js b/data-room-ui/packages/RemoteComponents/remoteComponentsList.js index 5c1a3236..d50c135e 100644 --- a/data-room-ui/packages/RemoteComponents/remoteComponentsList.js +++ b/data-room-ui/packages/RemoteComponents/remoteComponentsList.js @@ -8,7 +8,12 @@ const innerRemoteComponents = [] files.keys().forEach(key => { const title = key.split('/')[1].replace('.vue', '') - const img = require(`./innerComponents/${title}/component.png`) + let img = null + try { + img = require(`./innerComponents/${title}/component.png`) + } catch (error) { + console.log(error) + } const config = require(`./innerComponents/${title}/config.js`).default innerRemoteComponents.push({ title: config.title || title,