mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
IE9: fix issue with Array.find and String.includes
This commit is contained in:
parent
bfd8475979
commit
71faf7cae3
@ -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;
|
||||
|
@ -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'
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ export default {
|
||||
if (!user) {
|
||||
return error({ message: 'User not found', statusCode: 404 })
|
||||
}
|
||||
console.log(user)
|
||||
return user
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user