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 debugger
if (isMobile()) { if (isMobile()) {
if(toName === 'processCenter'){ if(toName === 'processCenter'){
const userAgent = navigator.userAgent; window.location.href="about:blank";
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { window.close();
window.location.href = "about:blank"
}else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
}
}else { }else {
if ((token === null || token === '' ) && toName !== 'Login') { if ((token === null || token === '' ) && toName !== 'Login') {
if(toName !== 'phoneIndex'){ if(toName !== 'phoneIndex'){
+2 -8
View File
@@ -18,14 +18,8 @@ export default {
}, },
methods: { methods: {
closeWindow(){ closeWindow(){
const userAgent = navigator.userAgent; window.location.href="about:blank";
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { window.close();
window.location.href = "about:blank"
}else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
}
} }
} }
} }
+2 -8
View File
@@ -18,14 +18,8 @@ export default {
}, },
methods: { methods: {
closeWindow(){ closeWindow(){
const userAgent = navigator.userAgent; window.location.href="about:blank";
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { window.close();
window.location.href = "about:blank"
}else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
}
} }
} }
} }