feat: There is no way the,iphone config
This commit is contained in:
+8
-2
@@ -109,8 +109,14 @@ router.beforeEach(function (to, from, next) {
|
|||||||
debugger
|
debugger
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
if(toName === 'processCenter'){
|
if(toName === 'processCenter'){
|
||||||
window.opener = null;
|
const userAgent = navigator.userAgent;
|
||||||
window.open("about:blank", "_self").close()
|
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();
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
if ((token === null || token === '' ) && toName !== 'Login') {
|
if ((token === null || token === '' ) && toName !== 'Login') {
|
||||||
if(toName !== 'phoneIndex'){
|
if(toName !== 'phoneIndex'){
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="blankPage">
|
<div class="blankPage">
|
||||||
<van-icon name="clear" color="#dabb27" size="70"/>
|
<van-icon name="clear" color="#dabb27" size="70"/>
|
||||||
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">当前任务不支持手机端处理</div>
|
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">当前任务不支持手机端处理</div>
|
||||||
<el-button type="primary" size="small" style="margin-top: 30px;width: 270px;" @click="$router.go(-1)">返回</el-button>
|
<el-button type="primary" size="small" style="margin-top: 30px;width: 270px;" @click="closeWindow()">返回</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -16,7 +16,18 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
methods: {}
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="processedPage">
|
<div class="processedPage">
|
||||||
<van-icon name="checked" color="#1fcd24" size="70"/>
|
<van-icon name="checked" color="#1fcd24" size="70"/>
|
||||||
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">当前任务已处理</div>
|
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">当前任务已处理</div>
|
||||||
<el-button type="primary" size="small" style="margin-top: 30px;width: 270px;" @click="$router.go(-1)">返回</el-button>
|
<el-button type="primary" size="small" style="margin-top: 30px;width: 270px;" @click="closeWindow()">返回</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -16,7 +16,18 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
methods: {}
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user