From 66c03db83f1f896e8c76fe9ff6e9b8de3ef558e6 Mon Sep 17 00:00:00 2001 From: lon9 <815882449@qq.com> Date: Mon, 19 Aug 2024 16:53:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=80=E5=A4=9A=E9=95=BF?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/home/src/main/ets/pages/Index.ets | 37 ------------------- .../resources/base/profile/main_pages.json | 5 --- 2 files changed, 42 deletions(-) delete mode 100644 features/home/src/main/ets/pages/Index.ets delete mode 100644 features/home/src/main/resources/base/profile/main_pages.json diff --git a/features/home/src/main/ets/pages/Index.ets b/features/home/src/main/ets/pages/Index.ets deleted file mode 100644 index f9c6348..0000000 --- a/features/home/src/main/ets/pages/Index.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { CommonConstants, WindowUtil } from '@ohos/commons'; -import { Home } from '../view/Home'; - -@Entry -@Component -struct Index { - aboutToDisappear(): void { - let windowUtil = WindowUtil.getInstance(); - if (windowUtil === undefined) { - return; - } - windowUtil.offWindowSizeChange(); - } - - build() { - Column() { - Home() - } - .width(CommonConstants.FULL_PERCENT) - .height(CommonConstants.FULL_PERCENT) - } -} \ No newline at end of file diff --git a/features/home/src/main/resources/base/profile/main_pages.json b/features/home/src/main/resources/base/profile/main_pages.json deleted file mode 100644 index 1898d94..0000000 --- a/features/home/src/main/resources/base/profile/main_pages.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "src": [ - "pages/Index" - ] -} -- Gitee