mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-23 06:50:02 +00:00
!265 修复:大文件夹内appMenu打开应用时隐藏大文件夹
Merge pull request !265 from yongxinggong/master
This commit is contained in:
commit
9e474f3848
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user