一、现象
1、登录页的地址写在pages.json中的第一位
2、使用了路由管理组件 uni-simple-router
3、从其它页面进行路由中转可以正常显示
4、但是直接完整输入路径打开时就会显示白屏
二、解决
添加路由重定向处理
{ path: '/pages/login/login', redirect: '/' }
或
{ path: '/pages/login/login', redirect: {name: '定义的登录页面别名'} }
三、总结
看到挺多人遇到的,因而记录下。希望能帮助到有需要的人。