1、vue页面嵌入小程序防止回退到登录页,
在登录页 跳转主页时使用$router.replace,
push记录页面历史
replace可以不记录浏览历史。
2、vue cli3 配置 history打包模式,
1. router.js 配置
mode: 'history',
base:'/域名文件地址/',
3.vue.config.js 配置
publicPath: process.env.NODE_ENV === 'production' ? '/域名文件地址/' : '/',
4、flex布局,justify-content right失效 一般在移动端真机会失效
justify-content: flex-end;这样写