Skip to content

Commit 6094ba0

Browse files
committed
chore: redirect to error page
1 parent f41d0e1 commit 6094ba0

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

pages/index.vue

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
<template>
2-
<template v-if="$services.length">
3-
<Group
4-
v-for="(group, key) in $services"
5-
:key="key"
6-
v-bind="group"
7-
/>
8-
</template>
9-
<Message v-else :title="$t('service.not-found.title')">
10-
<template #text>
11-
<p>
12-
{{ $t('service.not-found.description') }}
13-
</p>
14-
<p class="mt-1">
15-
<a href="#" class="text-sky-500 hover:text-sky-800">{{ $t('service.not-found.action') }}</a>
16-
</p>
17-
</template>
18-
</Message>
2+
<Group
3+
v-for="(group, key) in $services"
4+
:key="key"
5+
v-bind="group"
6+
/>
197
<Update v-if="$settings.checkUpdates" />
208
</template>
219

2210
<script setup lang="ts">
2311
const { $services, $settings } = useNuxtApp()
12+
13+
if ($settings.error) {
14+
throw createError({
15+
message: $settings.error,
16+
})
17+
}
2418
</script>

0 commit comments

Comments
 (0)