uniapp使用vue-router
时间: 2023-09-17 11:13:17 浏览: 156
uniapp使用了类似于vue-router的插件uni-simple-router来实现路由功能。然而,相较于vue-router,uniapp在路由管理的功能上还是有一些不足之处,比如缺乏全局导航守卫。为了实现在app路由栈已到达最底层时再次点击退出程序的功能,可以在router.js文件中导入runtimeQuit函数,并在路由配置中进行相应的设置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [uni-simple-router:使用vue-router管理uniapp路由](https://blog.csdn.net/weixin_42776027/article/details/124302608)[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_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文