diff --git a/pages/article/_article_id.vue b/pages/article/_article_id.vue index c78641d..458fe9a 100644 --- a/pages/article/_article_id.vue +++ b/pages/article/_article_id.vue @@ -182,10 +182,7 @@ onRouter(name, data) { this.$router.push( { - name: name, - params: { - id: data - } + path: `/${name}/${data}` } ) },