maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
3 additions and
3 deletions
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Index.cshtml.cs
|
|
@ -29,14 +29,14 @@ namespace Volo.Docs.Pages.Documents |
|
|
{ |
|
|
{ |
|
|
if (_uiOptions.SingleProjectMode.Enable) |
|
|
if (_uiOptions.SingleProjectMode.Enable) |
|
|
{ |
|
|
{ |
|
|
return RedirectToPage("/Documents/Project/Index", new {version = DocsAppConsts.Latest }); |
|
|
return Redirect($"/Documents/Project/Index?version={DocsAppConsts.Latest}"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var listResult = await _projectAppService.GetListAsync(); |
|
|
var listResult = await _projectAppService.GetListAsync(); |
|
|
|
|
|
|
|
|
if (listResult.Items.Count == 1) |
|
|
if (listResult.Items.Count == 1) |
|
|
{ |
|
|
{ |
|
|
return RedirectToPage("/Documents/Project/Index", new { shortName = listResult.Items[0].ShortName }); |
|
|
return Redirect($"/Documents/{listResult.Items[0].ShortName}"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Projects = listResult.Items; |
|
|
Projects = listResult.Items; |
|
|
@ -44,4 +44,4 @@ namespace Volo.Docs.Pages.Documents |
|
|
return Page(); |
|
|
return Page(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|