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
|
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'){
|
||||||
|
|||||||
@@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user