mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-27 00:51:34 +00:00
修复长按dock栏图标,拖拽至新页面,不松手的情况下再拖拽回dock栏,此时会新建一个空白页
Signed-off-by: zhengyongjie <15531316327@163.com>
This commit is contained in:
parent
06b9bd5694
commit
31985a74b7
@ -999,7 +999,7 @@ export class PageDesktopViewModel extends BaseViewModel {
|
||||
* Delete the chosen blank page.
|
||||
*/
|
||||
deleteBlankPage(pageIndex?:number): void {
|
||||
const curPageIndex = pageIndex!== undefined? pageIndex : this.mPageDesktopModel.getPageIndex();
|
||||
const curPageIndex = pageIndex !== undefined ? pageIndex : this.mPageDesktopModel.getPageIndex();
|
||||
this.deleteGridPage(curPageIndex);
|
||||
if (curPageIndex === 0) {
|
||||
this.mPageDesktopModel.setPageIndex(curPageIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user