@@ -14,11 +14,18 @@
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')
+ this.$router.replace('/')
+ }
+ },
head () {
return {
title: this.error.message || 'An error occurred'
}
+
</script>