This commit is contained in:
yanran200730
2022-07-27 10:17:05 +08:00
parent 2282183509
commit f16f3457dd

View File

@@ -35,10 +35,11 @@
}, },
mounted () { mounted () {
if (this.$route.query('id')) { console.log(this.$route)
if (this.$route.params.id) {
this.component = 'Detail' this.component = 'Detail'
this.params = { this.params = {
id: this.$route.query('id') id: this.$route.params.id
} }
} }
}, },