修改手机端返回跳到pc的首页
This commit is contained in:
@@ -1884,4 +1884,5 @@ module.exports = {
|
||||
browsingTime:'Browsing Time',
|
||||
pleaseViewOnPc:'Please view on PC',
|
||||
taskHandling:'Task Handling',
|
||||
backToHomePage:'Back to home page',
|
||||
}
|
||||
@@ -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' })
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user