Skip to content

路由 文件

在app/src/main/assets/therouter/routeMap.json 里面,可以看出来目前项目里面有几个路由。
初始化配置
```
	TheRouter.init(this)
```

自己配置

可以直接复制一个,配置好路径(path)即可。
```
{
    "path": "http://com.ruoyi/mine/fragment",
    "className": "com.ruoyi.app.fragment.MineFragment",
    "action": "action://scheme.com",
    "description": "minie",
    "params": {}
  },
```
跳转使用:
```
// 简单的传参和路由跳转
TheRouter.build("test://webview/home")
    .withString("url", "http://www.baidu.com")
    .navigation(act)
```

如果以上内容对您有帮助,请老板用微信扫一下赞赏码。

支持渠道支持渠道

本文档内容版权属于 RuoYi-Go 作者,保留所有权利 .