再现
1)生成“ my-app”作为“用户和身份验证” +添加用户 2)npm run dev =登录工作 3)npm运行构建 4)npm run start =登录无效
登录屏幕只是重定向到自身。
$(document).ready(function (){
//Android Version:
if(navigator.userAgent.toLowerCase().indexOf("android") != -1) {
window.location.href = "https://link1";
} else {
if(navigator.userAgent.toLowerCase().indexOf("iphone") != -1){
window.location.href = 'https://link2';
} else {
if(navigator.userAgent.toLowerCase().indexOf("ipad") != -1){
window.location.href = 'https://link3';
} else {
window.location.href = 'https://link4';
}
}
}
});
有人解决了吗?