mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 08:46:45 +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: {
|
||||
|
||||
@@ -234,13 +234,13 @@ 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()
|
||||
},
|
||||
|
||||
@@ -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