16e7c69efSopenharmony_ci/* 26e7c69efSopenharmony_ci* Copyright (C) 2024 Huawei Device Co., Ltd. 36e7c69efSopenharmony_ci* Licensed under the Apache License, Version 2.0 (the "License"); 46e7c69efSopenharmony_ci* you may not use this file except in compliance with the License. 56e7c69efSopenharmony_ci* You may obtain a copy of the License at 66e7c69efSopenharmony_ci* 76e7c69efSopenharmony_ci* http://www.apache.org/licenses/LICENSE-2.0 86e7c69efSopenharmony_ci* 96e7c69efSopenharmony_ci* Unless required by applicable law or agreed to in writing, software 106e7c69efSopenharmony_ci* distributed under the License is distributed on an "AS IS" BASIS, 116e7c69efSopenharmony_ci* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 126e7c69efSopenharmony_ci* See the License for the specific language governing permissions and 136e7c69efSopenharmony_ci* limitations under the License. 146e7c69efSopenharmony_ci*/ 156e7c69efSopenharmony_ciexport function harInit(path: string): void{ 166e7c69efSopenharmony_ci // 动态引入要跳转的页面 176e7c69efSopenharmony_ci switch (path) { 186e7c69efSopenharmony_ci case "./src/main/ets/components/mainpage/page1": 196e7c69efSopenharmony_ci import("./src/main/ets/components/mainpage/page1"); 206e7c69efSopenharmony_ci break; 216e7c69efSopenharmony_ci case "./src/main/ets/components/mainpage/page2": 226e7c69efSopenharmony_ci import("./src/main/ets/components/mainpage/page2"); 236e7c69efSopenharmony_ci break; 246e7c69efSopenharmony_ci case "./src/main/ets/components/mainpage/page3": 256e7c69efSopenharmony_ci import("./src/main/ets/components/mainpage/page3"); 266e7c69efSopenharmony_ci break; 276e7c69efSopenharmony_ci default: 286e7c69efSopenharmony_ci break; 296e7c69efSopenharmony_ci } 306e7c69efSopenharmony_ci} 31