feat: There is no way the,iphone config

This commit is contained in:
super_liu
2021-12-22 18:01:08 +08:00
parent ee41b01f3d
commit 86a7bb7023
3 changed files with 6 additions and 24 deletions
+2 -8
View File
@@ -109,14 +109,8 @@ router.beforeEach(function (to, from, next) {
debugger
if (isMobile()) {
if(toName === 'processCenter'){
const userAgent = navigator.userAgent;
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) {
window.location.href = "about:blank"
}else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
}
window.location.href="about:blank";
window.close();
}else {
if ((token === null || token === '' ) && toName !== 'Login') {
if(toName !== 'phoneIndex'){
+2 -8
View File
@@ -18,14 +18,8 @@ export default {
},
methods: {
closeWindow(){
const userAgent = navigator.userAgent;
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) {
window.location.href = "about:blank"
}else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
}
window.location.href="about:blank";
window.close();
}
}
}
+2 -8
View File
@@ -18,14 +18,8 @@ export default {
},
methods: {
closeWindow(){
const userAgent = navigator.userAgent;
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) {
window.location.href = "about:blank"
}else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
}
window.location.href="about:blank";
window.close();
}
}
}