当前位置:网站首页>Uniapp solves the home page. Click return (mobile phone return key) to jump to the login page
Uniapp solves the home page. Click return (mobile phone return key) to jump to the login page
2022-04-22 06:42:00 【Herry brother】
** You are using uniapp When writing a small program, I found that after jumping from the login page to the home page , Click the back button on the home page ( Or the physical return key of the mobile phone ) It will appear blank or jump to the login page
*** Here I summarize two solutions
1. Case one ( It is also the simplest solution ), I think most people are through **uni.navigateTo** The jump ( as follows ), In this case, you can put
uni.navigateTo({
url:'../home/home' Change it to
})
uni.reLaunch({
url: '../home/home'
})
It's a perfect solution
2. The second situation is in your pages.json Start page path in ( Usually the first path ) Should be login Or something , It's not the home page anyway , At this point, you can put the path of the home page in the first , But the disadvantage is that the login page is not displayed or the effect in the transition page is not displayed
If it helps you , Remember to like it , I wrote all the problems I encountered on it
版权声明
本文为[Herry brother]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220556437955.html
边栏推荐
猜你喜欢

将Chrome浏览器背景设置为护眼色(眼睛护航/darkReader插件)

8张图让你一步步看清 async/await 和 promise 的执行顺序

webService接口编写并发布与webService接口的调用(二)

创新实训(九)整合

The minors protection solution of digital beauty technology is heavily launched, opening a new era of minors' network escort

在微信小程序中打开的页面不能超过10个,达到10个页面后,就不能再打开新的页面

关于一段小程序的思考

Sort sort

Shumei technology and surging news jointly released the "network information content security insight report"

TCP和UDP区别详解
随机推荐
Functions and differences between synchronized keyword and volatile keyword
Shumei technology and surging news jointly released the "network information content security insight report"
数美科技受邀参加信通院内容治理标签研讨会
POM文件浅析
研发技术总结
Iframe子父级传参
正则验证
uniapp自定义底部导航栏h5有效果小程序无效的解决方案
PostgreSQL 13.3, 12.7, 11.12, 10.17 and 9.6.22 have been released!
Promise
Golang select优先级执行
nodejs+Express+mongodb
Excel工作表忘记密码后取消密码
uglifyjs压缩JS
COM in Wine(1)——COM基本概念
The sixth anniversary of digital technology pays tribute to you behind it
Escort · the future 𞓜 digital risk control summit of digital America 2022 officially set off
Spent four days painstakingly writing all the notes of MySQL, which is very suitable for beginners.
js,jq单行文字上下滚动
Pgdoucer best practices: Series 3