mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-23 06:50:02 +00:00
修复长按dock栏图标,拖拽至新页面,不松手的情况下再拖拽回dock栏,此时会新建一个空白页
Signed-off-by: zhengyongjie <15531316327@163.com>
This commit is contained in:
parent
a5de0d9f93
commit
06b9bd5694
@ -124,7 +124,7 @@ export default struct ResidentLayout {
|
||||
})
|
||||
.onDragLeave((event: DragEvent, extraParams: string) => {
|
||||
Log.showDebug(TAG, `onDragLeave event: [${event.getWindowX()}, ${event.getWindowY()}]`);
|
||||
let oldPageList: number[]| undefined = AppStorage.get('dockAddedPage');
|
||||
let oldPageList: number[] | undefined = AppStorage.get('dockAddedPage');
|
||||
if (oldPageList) {
|
||||
this.oldPageList = [...oldPageList];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user