diff --git a/project/sass/apps/Announce/AppAnnounce/AppAnnounce.vue b/project/sass/apps/Announce/AppAnnounce/AppAnnounce.vue index 6fc0d0b4..493149d5 100644 --- a/project/sass/apps/Announce/AppAnnounce/AppAnnounce.vue +++ b/project/sass/apps/Announce/AppAnnounce/AppAnnounce.vue @@ -35,10 +35,11 @@ }, mounted () { - if (this.$route.query('id')) { + console.log(this.$route) + if (this.$route.params.id) { this.component = 'Detail' this.params = { - id: this.$route.query('id') + id: this.$route.params.id } } },