feat: There is no way the,iphone config
This commit is contained in:
+2
-8
@@ -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'){
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user