uniapp中uni-simple-router
时间: 2023-08-21 10:06:18 浏览: 107
uni-router-interceptor:适用于uni-app的简单路由器拦截器
uni-simple-router是一个在uniapp中使用的路由管理插件。你可以在系统工程中的router文件(如:src/router/index.js)中加入routerErrorEach监听来实现路由守卫。该插件提供了丰富的功能,可以拦截路由跳转、处理错误、控制路由锁定状态等。通过配置vue.config.js和安装uni-simple-router插件,你可以在uniapp中使用路由守卫。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [uniapp 引入 uni-simple-router 后造成 android 真机 物理返回键 退出应用的功能缺失的解决方式](https://blog.csdn.net/WangYanWenXin/article/details/131441264)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [uniapp路由—— uni-simple-router](https://blog.csdn.net/weixin_66556453/article/details/125530649)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [uni-simple-router实现简单的路由守卫](https://download.csdn.net/download/qq_25447009/85195058)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文