diff --git a/CHANGELOG.md b/CHANGELOG.md index ca8afb7d9b61ccaac917a260a1a78de7f715e77d..c676a4e49786c26cdd30d93236e07fe0fee0060a 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 818f28a2efc836719ef54fc5d90da6cbb536df12..fcb47714ffc8491bef517700434bc0bd6e7bbb94 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;