From 822fb44481e4b3aef4ea1757367fd4142c9e9709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=A0=E4=BA=86=E8=91=B1=E8=8A=B1=E7=9A=84=E8=9B=8B?= =?UTF-8?q?=E7=82=92=E9=A5=AD?= <2878709960@qq.com> Date: Tue, 10 Dec 2024 17:33:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E6=97=A0appUtils=E8=B5=84=E6=BA=90=E6=97=B6?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ template/model/index.ts.hbs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca8afb7..c676a4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ## [Unreleased] +### Fixed + +- 修复项目应用无appUtils资源时启动报错的问题 + ### PackageUpgrade - element-plus@2.4.1 diff --git a/template/model/index.ts.hbs b/template/model/index.ts.hbs index 818f28a..fcb4771 100644 --- a/template/model/index.ts.hbs +++ b/template/model/index.ts.hbs @@ -39,7 +39,7 @@ export async function getAppModel(): Promise { ibiz.hub.defaultAppIndexViewName = '{{app.defaultPSAppIndexView.codeName}}'; return import('./app/app').then(m => { const app = m.default as IData; - app.appUtils.forEach((util:IData) => { + app.appUtils?.forEach((util:IData) => { util.appId = app.appId }); app.appId = undefined; -- Gitee