修改手机端返回跳到pc的首页
This commit is contained in:
@@ -1884,4 +1884,5 @@ module.exports = {
|
|||||||
browsingTime:'Browsing Time',
|
browsingTime:'Browsing Time',
|
||||||
pleaseViewOnPc:'Please view on PC',
|
pleaseViewOnPc:'Please view on PC',
|
||||||
taskHandling:'Task Handling',
|
taskHandling:'Task Handling',
|
||||||
|
backToHomePage:'Back to home page',
|
||||||
}
|
}
|
||||||
@@ -1985,4 +1985,5 @@ module.exports = {
|
|||||||
browsingTime:'浏览时间',
|
browsingTime:'浏览时间',
|
||||||
pleaseViewOnPc:'请在pc的查看',
|
pleaseViewOnPc:'请在pc的查看',
|
||||||
taskHandling:'任务办理',
|
taskHandling:'任务办理',
|
||||||
|
backToHomePage:'返回首页',
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<h1>{{ config[type].title }}</h1>
|
<h1>{{ config[type].title }}</h1>
|
||||||
<div class="desc">{{ config[type].desc }}</div>
|
<div class="desc">{{ config[type].desc }}</div>
|
||||||
<div class="action">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -31,7 +31,12 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleToHome () {
|
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