修改手机端返回跳到pc的首页

This commit is contained in:
范强强
2023-06-30 11:51:55 +08:00
parent 84dd129f60
commit d8c6cd833e
3 changed files with 9 additions and 2 deletions
+1
View File
@@ -1884,4 +1884,5 @@ module.exports = {
browsingTime:'Browsing Time',
pleaseViewOnPc:'Please view on PC',
taskHandling:'Task Handling',
backToHomePage:'Back to home page',
}
+1
View File
@@ -1985,4 +1985,5 @@ module.exports = {
browsingTime:'浏览时间',
pleaseViewOnPc:'请在pc的查看',
taskHandling:'任务办理',
backToHomePage:'返回首页',
}
@@ -7,7 +7,7 @@
<h1>{{ config[type].title }}</h1>
<div class="desc">{{ config[type].desc }}</div>
<div class="action">
<a-button type="primary" @click="handleToHome">返回首页</a-button>
<a-button type="primary" @click="handleToHome">{{$t('m.backToHomePage')}}</a-button>
</div>
</div>
</div>
@@ -31,7 +31,12 @@
},
methods: {
handleToHome () {
this.$router.push({ name: 'dashboard' })
let isPhone = localStorage.getItem('isPhone')
if (isPhone == 'yes'){
this.$router.push({ path: '/phoneSearch' })
}else{
this.$router.push({ name: 'dashboard' })
}
}
}
}