IE9: fix issue with Array.find and String.includes

This commit is contained in:
Sebastien Chopin 2017-07-04 15:41:43 +02:00
parent bfd8475979
commit 71faf7cae3
4 changed files with 27 additions and 1 deletions

View File

@ -7,6 +7,16 @@
</div>
</template>
<script>
import img from '@/assets/nuxt.png'
export default {
mounted() {
console.log('Teub', img)
}
}
</script>
<style>
.container {
font-size: 20px;

View File

@ -14,5 +14,15 @@ module.exports = {
{ id: 5, name: 'Kevin Durant', number: 35 },
{ id: 6, name: 'Kyrie Irving', number: 2 }
]
},
generate: {
routes: [
'/1',
'/2',
'/3',
'/4',
'/5',
'/6'
]
}
}

View File

@ -15,6 +15,7 @@ export default {
if (!user) {
return error({ message: 'User not found', statusCode: 404 })
}
console.log(user)
return user
}
}

View File

@ -11,7 +11,12 @@ const filenames = files.keys()
let storeData = {}
// Check if store/index.js exists
const indexFilename = filenames.find((filename) => filename.includes('./index.'))
let indexFilename
filenames.forEach((filename) => {
if (filename.indexOf('./index.') !== -1) {
indexFilename = filename
}
})
if (indexFilename) {
storeData = getModule(indexFilename)
}