New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(zh): update #2575

Merged
merged 2 commits into from Jan 11, 2019

Conversation

Projects
None yet
3 participants
@Jinjiang
Copy link
Member

Jinjiang commented Jan 11, 2019

当使用一个*通配符*时,`$route.params` 内会自动添加一个名为 `pathMatch` 参数。它包含了 URL 通过*通配符*被匹配的部分:

```js
// Given a route { path: '/user-*' }

This comment has been minimized.

@Justineo

Justineo Jan 11, 2019

Member

漏了

// Given a route { path: '/user-*' }
this.$router.push('/user-admin')
this.$route.params.pathMatch // 'admin'
// Given a route { path: '*' }

This comment has been minimized.

@Justineo

Justineo Jan 11, 2019

Member

同上

@posva posva merged commit d51e833 into vuejs:dev Jan 11, 2019

5 checks passed

ci/circleci: install Your tests passed on CircleCI!
Details
ci/circleci: lint-flow-types Your tests passed on CircleCI!
Details
ci/circleci: test-e2e Your tests passed on CircleCI!
Details
ci/circleci: test-unit Your tests passed on CircleCI!
Details
deploy/netlify Deploy preview ready!
Details

@Jinjiang Jinjiang deleted the Jinjiang:zh branch Jan 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment