mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 01:22:53 +08:00
添加跳转问题件详情页动态路由
This commit is contained in:
@@ -11,7 +11,7 @@ export default [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/questions/detail',
|
||||
path: '/questions/detail/:id/:type',
|
||||
name: 'QuestionsDetail',
|
||||
component: g('QuestionsDetail'),
|
||||
meta: {
|
||||
|
||||
@@ -202,7 +202,7 @@ export default {
|
||||
extra: {
|
||||
title: '国富人寿欢迎您!',
|
||||
content: this.shareContent,
|
||||
url: `${location.origin}/#/manpower/increaseStaffTools/PdfShare?&token=${token}`,
|
||||
url: `${location.origin}/#/questions/detail?&token=${token}`,
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
})
|
||||
@@ -234,15 +234,15 @@ export default {
|
||||
},
|
||||
async getQuestionDetail() {
|
||||
const rs = await getQuestionDetail({
|
||||
id: this.$route.query.id
|
||||
id: this.$route.params.id
|
||||
})
|
||||
console.log(rs)
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
this.issueType = this.$route.query.type
|
||||
this.issueType = this.$route.params.type
|
||||
this.getBankList()
|
||||
this.getQuestionDetail()
|
||||
console.log(this.$route.params)
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -139,7 +139,7 @@ export default {
|
||||
url: `${window.location.origin}/#/questions/detail`
|
||||
},
|
||||
routerInfo: {
|
||||
path: `/questions/detail?id=${item.id}&type=${item.businessType}`
|
||||
path: `/questions/detail/${item.id}/${item.businessType}`
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user