# fwrouter **Repository Path**: FantasyWind/fwrouter ## Basic Information - **Project Name**: fwrouter - **Description**: HarmonyOS系统应用开发路由组件。 支持页面路由(单router模式、单Navigation模式、混合模式)和服务路由功能调用。 支持路由自动注册,自动导入。 - **Primary Language**: TypeScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 27 - **Forks**: 5 - **Created**: 2024-06-24 - **Last Updated**: 2025-08-26 ## Categories & Tags **Categories**: harmonyos-advanced **Tags**: HarmonyOS组件, ArkTS, 路由, Router, OpenHarmony组件 ## README # fwrouter #### Description HarmonyOS系统应用开发路由组件,支持页面路由(单router模式、单Navigation模式、混合模式)和服务路由功能调用。 #### 功能与特性 - 页面路由支持多种模式(router模式,Navigation模式,混合模式); - 支持页面打开(push/replace),参数传递;关闭页面,返回指定页面,获取返回值,跨页面获取返回值; - 支持服务路由,可使用路由url调用公共方法,达到跨技术栈调用以及代码解耦的目的; - 支持页面路由/服务路由通过装饰器自动注册; - 支持动态导入(在打开路由时才import对应har包); - 支持添加拦截器; #### Installation ```shell ohpm install @fw/router ``` #### Instructions see [Usage Instructions](./router/README.md) #### Contribution 1. Fork the repository 2. Create Feat_xxx branch 3. Commit your code 4. Create Pull Request #### Gitee Feature 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)