|
|
@@ -15,8 +15,8 @@ export default {
|
|
|
name: 'nuxt-error',
|
|
|
props: ['error'],
|
|
|
created () {
|
|
|
- if (this.error.statusCode === 500 && /^Loading chunk (\d)+ failed\./.test(this.error.message)) {
|
|
|
- console.log('Loading chunk113333333333333333333331')
|
|
|
+ if (this.error.statusCode === 500 && this.error.message.indexOf('Loading chunk') === 0) {
|
|
|
+ console.log('Loading chunk 26 failed')
|
|
|
this.$router.replace('/')
|
|
|
}
|
|
|
},
|