Skip to content

Commit 0cf8f4c

Browse files
committed
chore(demo): example fixes
1 parent 0d483f7 commit 0cf8f4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo/src/assets/examples.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default require.context('../examples', true, /^\.\/.*\.vue$/)
1717
.map(page => page.slice(2).replace('.vue', ''))
1818
.filter(page => page !== 'Index')
1919
.map(page => ({
20-
file: page,
21-
title: page + '.vue',
20+
file: page + '.vue',
21+
title: page,
2222
path: slugify(kebabCase(page))
2323
}))

demo/src/boot/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default ({ Vue }) => {
44
import(
55
/* webpackChunkName: "examples" */
66
/* webpackMode: "lazy-once" */
7-
`../examples/${examples[index].file}.vue`
7+
`../examples/${examples[index].file}`
88
).then(comp => {
99
Vue.component(examples[index].file, comp.default)
1010
})

0 commit comments

Comments
 (0)