Renamed 404
This commit is contained in:
parent
b62fa4057a
commit
187c52cd44
@ -8,7 +8,7 @@ import Home from '@/views/Home.vue'
|
|||||||
import Quiz from '@/views/quiz/Index.vue'
|
import Quiz from '@/views/quiz/Index.vue'
|
||||||
import QuizPage from '@/views/quiz/Quiz.vue'
|
import QuizPage from '@/views/quiz/Quiz.vue'
|
||||||
import Question from '@/views/quiz/Question.vue'
|
import Question from '@/views/quiz/Question.vue'
|
||||||
import Error404 from '@/views/errors/Error404.vue'
|
import NotFound from '@/views/errors/NotFound.vue'
|
||||||
import Refused from '@/views/errors/Refused.vue'
|
import Refused from '@/views/errors/Refused.vue'
|
||||||
import Results from '@/views/results/Index.vue'
|
import Results from '@/views/results/Index.vue'
|
||||||
import ResultsPage from '@/views/results/Results.vue'
|
import ResultsPage from '@/views/results/Results.vue'
|
||||||
@ -174,22 +174,22 @@ const routes = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/404',
|
path: '/err_notfound',
|
||||||
name: 'Error404',
|
name: 'NotFound',
|
||||||
component: Error404,
|
component: NotFound,
|
||||||
meta: {
|
meta: {
|
||||||
index: -1,
|
index: -1,
|
||||||
title: 'Error 404: Not Found',
|
title: 'Error: Not Found',
|
||||||
svgPath: mdiWeb
|
svgPath: mdiWeb
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/:catchAll(.*)",
|
path: "/:catchAll(.*)",
|
||||||
name: 'NotFound',
|
name: 'NotFound',
|
||||||
redirect: '/404',
|
redirect: '/err_notfound',
|
||||||
meta: {
|
meta: {
|
||||||
index: -1,
|
index: -1,
|
||||||
title: 'Error 404: Not Found',
|
title: 'Error: Not Found',
|
||||||
svgPath: mdiWeb
|
svgPath: mdiWeb
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
import Header from '@/components/Header.vue'
|
import Header from '@/components/Header.vue'
|
||||||
import TextFrame from '@/components/TextFrame.vue'
|
import TextFrame from '@/components/TextFrame.vue'
|
||||||
export default {
|
export default {
|
||||||
name: 'Error404',
|
name: 'NotFound',
|
||||||
components: {
|
components: {
|
||||||
Content,
|
Content,
|
||||||
Header,
|
Header,
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<div >
|
<div >
|
||||||
<TextFrame>
|
<TextFrame>
|
||||||
<Header>
|
<Header>
|
||||||
404: Not Found
|
Error: Not Found
|
||||||
</Header>
|
</Header>
|
||||||
<Content>
|
<Content>
|
||||||
<article class="prose mx-auto">
|
<article class="prose mx-auto">
|
@ -39,7 +39,7 @@
|
|||||||
() => this.$route.params, (toParams, previousParams) => {
|
() => this.$route.params, (toParams, previousParams) => {
|
||||||
if (this.$route.name == 'Question') {
|
if (this.$route.name == 'Question') {
|
||||||
if (toParams.id >= this.questionStore.questions.length || this.id < 0) {
|
if (toParams.id >= this.questionStore.questions.length || this.id < 0) {
|
||||||
this.$router.push('/404')
|
this.$router.push('/err_notfound')
|
||||||
} else {
|
} else {
|
||||||
if ( toParams.id == 0 ) {
|
if ( toParams.id == 0 ) {
|
||||||
this.enableBack = false
|
this.enableBack = false
|
||||||
@ -57,7 +57,7 @@
|
|||||||
this.$watch(
|
this.$watch(
|
||||||
() => this.appStore.hasData, (newValue) => {
|
() => this.appStore.hasData, (newValue) => {
|
||||||
if (this.id >= this.questionStore.questions.length || this.id < 0) {
|
if (this.id >= this.questionStore.questions.length || this.id < 0) {
|
||||||
this.$router.push('/404')
|
this.$router.push('/err_notfound')
|
||||||
} else {
|
} else {
|
||||||
this.answersStore.makeArray(this.id, this.questionStore.questions[this.id].select)
|
this.answersStore.makeArray(this.id, this.questionStore.questions[this.id].select)
|
||||||
if ( this.id == this.questionStore.questions.length -1 ) {
|
if ( this.id == this.questionStore.questions.length -1 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user