Renamed 404
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import Header from '@/components/Header.vue'
|
||||
import TextFrame from '@/components/TextFrame.vue'
|
||||
export default {
|
||||
name: 'Error404',
|
||||
name: 'NotFound',
|
||||
components: {
|
||||
Content,
|
||||
Header,
|
||||
@@ -15,7 +15,7 @@
|
||||
<div >
|
||||
<TextFrame>
|
||||
<Header>
|
||||
404: Not Found
|
||||
Error: Not Found
|
||||
</Header>
|
||||
<Content>
|
||||
<article class="prose mx-auto">
|
@@ -39,7 +39,7 @@
|
||||
() => this.$route.params, (toParams, previousParams) => {
|
||||
if (this.$route.name == 'Question') {
|
||||
if (toParams.id >= this.questionStore.questions.length || this.id < 0) {
|
||||
this.$router.push('/404')
|
||||
this.$router.push('/err_notfound')
|
||||
} else {
|
||||
if ( toParams.id == 0 ) {
|
||||
this.enableBack = false
|
||||
@@ -57,7 +57,7 @@
|
||||
this.$watch(
|
||||
() => this.appStore.hasData, (newValue) => {
|
||||
if (this.id >= this.questionStore.questions.length || this.id < 0) {
|
||||
this.$router.push('/404')
|
||||
this.$router.push('/err_notfound')
|
||||
} else {
|
||||
this.answersStore.makeArray(this.id, this.questionStore.questions[this.id].select)
|
||||
if ( this.id == this.questionStore.questions.length -1 ) {
|
||||
|
Reference in New Issue
Block a user