This commit is contained in:
Lajos Veres 2018-09-29 21:05:20 +01:00 committed by Sébastien Chopin
parent 0c1d94a2c7
commit 74eb5a6302
5 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="container"> <div class="container">
<h1 v-if="error.statusCode === 404">Page not found</h1> <h1 v-if="error.statusCode === 404">Page not found</h1>
<h1 v-else>An error occured</h1> <h1 v-else>An error occurred</h1>
<nuxt-link to="/">Home page</nuxt-link> <nuxt-link to="/">Home page</nuxt-link>
</div> </div>
</template> </template>

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="container"> <div class="container">
<h1 v-if="error.statusCode === 404">Page not found</h1> <h1 v-if="error.statusCode === 404">Page not found</h1>
<h1 v-else>An error occured</h1> <h1 v-else>An error occurred</h1>
<nuxt-link to="/">Home page</nuxt-link> <nuxt-link to="/">Home page</nuxt-link>
</div> </div>
</template> </template>

View File

@ -29,7 +29,7 @@ export interface Person {
gender: string gender: string
ip_address: string ip_address: string
avatar: string avatar: string
addres: PersonAddress address: PersonAddress
} }
export interface State { export interface State {

View File

@ -82,7 +82,7 @@ export default {
if (worker) worker.postMessage({ hello: 'world' }) if (worker) worker.postMessage({ hello: 'world' })
else this.notification = 'No more test workers available' else this.notification = 'No more test workers available'
}, },
long (miliseconds) { long (milliseconds) {
let worker = this.workers.shift() let worker = this.workers.shift()
if (worker) { if (worker) {
@ -96,7 +96,7 @@ export default {
worker = this.longRunningWorkers[ this.longIndex++ % this.longRunningWorkers.length] worker = this.longRunningWorkers[ this.longIndex++ % this.longRunningWorkers.length]
} }
worker.postMessage({ action: 'expensive', time: miliseconds }) worker.postMessage({ action: 'expensive', time: milliseconds })
}, },
freeWorker () { freeWorker () {
// we can't really free a worker, we can only terminate it and create a new // we can't really free a worker, we can only terminate it and create a new

View File

@ -665,7 +665,7 @@ async function mountApp(__app) {
if (!path) { if (!path) {
normalizeComponents(router.currentRoute, router.currentRoute) normalizeComponents(router.currentRoute, router.currentRoute)
showNextPage.call(_app, router.currentRoute) showNextPage.call(_app, router.currentRoute)
// Dont call fixPrepatch.call(_app, router.currentRoute, router.currentRoute) since it's first render // Don't call fixPrepatch.call(_app, router.currentRoute, router.currentRoute) since it's first render
mount() mount()
return return
} }