mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-23 14:59:42 +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) {
|
if (openClickCallback) {
|
||||||
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);
|
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);
|
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.menuImgSrc = '/common/pics/ic_public_add_norm.svg';
|
||||||
open.menuText = $r('app.string.app_menu_open');
|
open.menuText = $r('app.string.app_menu_open');
|
||||||
open.onMenuClick = () => {
|
open.onMenuClick = () => {
|
||||||
|
if (AppStorage.Get('openFolderStatus') != 0) {
|
||||||
|
AppStorage.SetOrCreate('openFolderStatus', 0);
|
||||||
|
}
|
||||||
this.setStartAppInfo()
|
this.setStartAppInfo()
|
||||||
this.jumpTo(appInfo.abilityName, appInfo.bundleName, appInfo.moduleName);
|
this.jumpTo(appInfo.abilityName, appInfo.bundleName, appInfo.moduleName);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user