update common/src/main/ets/default/model/AppModel.ts.

Signed-off-by: 王志港 <wangzhigang46@huawei.com>
This commit is contained in:
王志港 2023-04-13 03:42:21 +00:00 committed by Gitee
parent 5e11a50f7e
commit efa6e6c309
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -146,6 +146,10 @@ export class AppModel {
this.closePopup();
this.updateShortcutInfo(bundleName, event);
this.mFormModel.updateAppItemFormInfo(bundleName, event);
// initial mBundleInfoList
if (CheckEmptyUtils.isEmptyArr(this.mBundleInfoList)) {
await this.getAppListAsync();
}
if (event === EventConstants.EVENT_PACKAGE_REMOVED) {
this.removeItem(bundleName);
this.mFormModel.deleteFormByBundleName(bundleName);