Skip to content

Commit

Permalink
docs: add .vue suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 19, 2022
1 parent dab08ae commit 7841b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docs/guide/advanced/lazy-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Vue Router supports [dynamic imports](https://developer.mozilla.org/en-US/docs/W
// replace
// import UserDetails from './views/UserDetails'
// with
const UserDetails = () => import('./views/UserDetails')
const UserDetails = () => import('./views/UserDetails.vue')

const router = createRouter({
// ...
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/zh/guide/advanced/lazy-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Vue Router 支持开箱即用的[动态导入](https://developer.mozilla.org/en-

```js
//
// import UserDetails from './views/UserDetails'
// import UserDetails from './views/UserDetails.vue'
// 替换成
const UserDetails = () => import('./views/UserDetails')
const UserDetails = () => import('./views/UserDetails.vue')

const router = createRouter({
// ...
Expand Down

0 comments on commit 7841b74

Please sign in to comment.