mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-13 15:39:18 +08:00
show error page if backend isnt running
This commit is contained in:
parent
8417acefb9
commit
8a16baf5f2
@ -90,8 +90,10 @@ export default class Home extends Vue {
|
||||
}
|
||||
|
||||
async asyncData({ $api, $util }: Context) {
|
||||
const sponsor = await $api.requestInternal<ProjectPage>(`data/sponsor`, false).catch<any>($util.handlePageRequestError);
|
||||
const projects = await $api.request<PaginatedResult<Project>>('projects', false, 'get', { limit: 25, offset: 0 });
|
||||
const sponsor = await $api.requestInternal<ProjectPage>(`data/sponsor`, false).catch<any>($util.handleRequestError);
|
||||
const projects = await $api
|
||||
.request<PaginatedResult<Project>>('projects', false, 'get', { limit: 25, offset: 0 })
|
||||
.catch<any>($util.handlePageRequestError);
|
||||
return { projects, sponsor };
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user