From da781582daa0c3512ac80c3657a6cd54a551afaa Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 9 Nov 2023 15:16:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E9=81=BF=E5=85=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/ToolBar/ResourceLibrary/RsourceStore.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/Components/ToolBar/ResourceLibrary/RsourceStore.ts b/src/UI/Components/ToolBar/ResourceLibrary/RsourceStore.ts index c233bd2f3..3239fdc1d 100644 --- a/src/UI/Components/ToolBar/ResourceLibrary/RsourceStore.ts +++ b/src/UI/Components/ToolBar/ResourceLibrary/RsourceStore.ts @@ -599,6 +599,7 @@ export default class ResourceStore c.params.forEach((p: string) => { let params = this.resourceParams[p] as ResourceParams; + if (!params) return;//避免错误 if (params.param_name === '风格') { this.currCategoryParams.styleParams = this.resourceParams[p]; return; } if (params.param_type === "2") { this.currCategoryParams.colorParams = this.resourceParams[p]; return; } this.currCategoryParams.otherParams.push(this.resourceParams[p]);