!265 修复:大文件夹内appMenu打开应用时隐藏大文件夹

Merge pull request !265 from yongxinggong/master
This commit is contained in:
openharmony_ci 2022-09-01 08:54:16 +00:00 committed by Gitee
commit 9e474f3848
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -916,7 +916,9 @@ export default class PageDesktopViewModel extends BaseViewModel {
if (openClickCallback) {
openClickCallback();
}
AppStorage.SetOrCreate('openFolderStatus', 0);
if (AppStorage.Get('openFolderStatus') != 0) {
AppStorage.SetOrCreate('openFolderStatus', 0);
}
this.jumpTo(value.wants[0].targetClass, value.wants[0].targetBundle, value.wants[0].targetModule);
};
value.bundleName == appInfo.bundleName && value.moduleName == appInfo.moduleName && menuInfoList.push(menu);
@ -928,6 +930,9 @@ export default class PageDesktopViewModel extends BaseViewModel {
open.menuImgSrc = '/common/pics/ic_public_add_norm.svg';
open.menuText = $r('app.string.app_menu_open');
open.onMenuClick = () => {
if (AppStorage.Get('openFolderStatus') != 0) {
AppStorage.SetOrCreate('openFolderStatus', 0);
}
this.setStartAppInfo()
this.jumpTo(appInfo.abilityName, appInfo.bundleName, appInfo.moduleName);
};