mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
solved fetching for configurationpage route
This commit is contained in:
parent
e474f7d04e
commit
fc9f747db2
2 changed files with 13 additions and 4 deletions
|
@ -314,9 +314,17 @@ class AppRouter {
|
|||
url += '?' + ctx.querystring;
|
||||
}
|
||||
|
||||
import(/* webpackChunkName: "[request]" */ `../controllers/${url}`).then((html) => {
|
||||
this.loadContent(ctx, route, html, request);
|
||||
});
|
||||
if (route.serverRequest) {
|
||||
const apiClient = ServerConnections.currentApiClient();
|
||||
|
||||
url = apiClient.getUrl(`/web${url}`);
|
||||
|
||||
apiClient.get(url).then(html => this.loadContent(ctx, route, html, request));
|
||||
} else {
|
||||
import(/* webpackChunkName: "[request]" */ `../controllers/${url}`).then((html) => {
|
||||
this.loadContent(ctx, route, html, request);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
handleRoute(ctx, next, route) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue