update common/src/main/ets/default/model/PageDesktopModel.ts.

Signed-off-by: 王志港 <wangzhigang46@huawei.com>
This commit is contained in:
王志港 2023-04-10 03:27:46 +00:00 committed by Gitee
parent 8c269c3f66
commit 3cfb982463
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -94,6 +94,9 @@ export class PageDesktopModel {
return false;
}
}
if (layoutInfo.layoutDescription.pageCount <= 1) {
return false;
}
layoutInfo.layoutDescription.pageCount--;
for (let m = 0; m < layoutInfo.layoutInfo.length; m++) {
if (layoutInfo.layoutInfo[m].page > page) {