Skip to content

Commit 478ea33

Browse files
committed
404
1 parent 58fc1f6 commit 478ea33

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

lib/default-theme/NotFound.vue

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
<template>
22
<div class="theme-container">
3-
<h1>404</h1>
4-
<blockquote>There's nothing here.</blockquote>
3+
<div class="content">
4+
<h1>404</h1>
5+
<blockquote>{{ getMsg() }}</blockquote>
6+
</div>
57
</div>
68
</template>
9+
10+
<script>
11+
const msgs = [
12+
`There's nothing here.`,
13+
`How did we get here?`,
14+
`That's a Four-Oh-Four.`,
15+
`Looks like we've got some broken links.`
16+
]
17+
18+
export default {
19+
methods: {
20+
getMsg () {
21+
return msgs[Math.floor(Math.random() * msgs.length)]
22+
}
23+
}
24+
}
25+
</script>

0 commit comments

Comments
 (0)