Open lily-white opened 6 years ago
router里用 path: '/article/:id', link里用:to="'/article/' + item.id" 取值用this.$route.params.id
router里用path: '/article', link里用:to="{path:'article', query: {articleId: item.id}}" 取值用this.$route.query.articleId
router里用 path: '/article/:id', link里用:to="'/article/' + item.id" 取值用this.$route.params.id