File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 8
8
<div class =" flex flex-col" >
9
9
<p class =" font-bold" >{{ props.error.statusCode }}</p >
10
10
<p >{{ props.error.message }}</p >
11
+ <div class =" mt-3" >
12
+ <WlButton variant =" secondary" @click =" listeners.home" >Go Home</WlButton >
13
+ </div >
11
14
</div >
12
15
</div >
13
16
</WlContainer >
14
17
</NuxtLayout >
15
18
</template >
16
19
17
20
<script setup lang="ts">
18
- import type { NuxtError } from ' #app'
21
+ import { clearError , type NuxtError } from ' #app'
22
+ import WlButton from ' ~/components/experiments/forms-input/buttons/WlButton.vue'
19
23
import WlTriangleExclamationIcon from ' ~/components/shared/icons/static/WlTriangleExclamationIcon.vue'
20
24
import WlContainer from ' ~/components/shared/layout/WlContainer.vue'
21
25
@@ -29,4 +33,13 @@ const props = defineProps<Props>()
29
33
//
30
34
// The instance returned here is the same as `props.error`.
31
35
// const globalError = useError()
36
+
37
+ const listeners = {
38
+ home () {
39
+ clearError ({
40
+ redirect: ' /'
41
+ })
42
+ }
43
+ }
32
44
</script >
45
+
You can’t perform that action at this time.
0 commit comments