We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97eb03f commit be724beCopy full SHA for be724be
1 file changed
app/error.vue
@@ -7,6 +7,7 @@ const props = defineProps<{
7
8
const status = computed(() => props.error.status || 500)
9
const statusText = computed(() => {
10
+ if (props.error.statusText) return props.error.statusText
11
switch (status.value) {
12
case 401:
13
return $t('error.401')
@@ -16,10 +17,9 @@ const statusText = computed(() => {
16
17
return $t('error.500')
18
case 503:
19
return $t('error.503')
20
+ default:
21
+ return $t('error.default')
22
}
-
- if (props.error.statusText) return props.error.statusText
- return $t('error.default')
23
})
24
25
function handleError() {
0 commit comments