fix bug in demo component, fix #39
This commit is contained in:
@@ -106,7 +106,7 @@ export default {
|
|||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.files = collect(require.context('~/demos/', true, /.+\..+$/).keys())
|
this.files = collect(require.context('~/demos/', true, /.+\..+$/).keys())
|
||||||
.filter(path => path.startsWith(`./${this.name}`))
|
.filter(path => path.startsWith(`./${this.name}/`))
|
||||||
.map(path => path.replace('./', ''))
|
.map(path => path.replace('./', ''))
|
||||||
.map(path => {
|
.map(path => {
|
||||||
const extension = path.split('.').pop()
|
const extension = path.split('.').pop()
|
||||||
|
|||||||
Reference in New Issue
Block a user