Browse Source

Merge pull request #18791 from abpframework/salihozkara/fixDocs

Docs: Fix script bundle problem.
issue-#3591
Engincan VESKE 3 years ago
committed by GitHub
parent
commit
8a8d28a366
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 20
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml

20
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml

@ -36,9 +36,10 @@
}
@section scripts {
<abp-script-bundle name="@typeof(IndexModel).FullName">
@if (Model.LoadSuccess)
{
@if (Model.LoadSuccess)
{
<abp-script-bundle name="@typeof(IndexModel).FullName">
<abp-script type="@typeof(MalihuCustomScrollbarPluginScriptBundleContributor)"/>
<abp-script type="@typeof(ClipboardScriptBundleContributor)"/>
<abp-script type="@typeof(AnchorJsScriptBundleContributor)"/>
@ -48,13 +49,14 @@
<abp-script src="/Pages/Documents/Project/bootstrap-toc.js"/>
<abp-script src="/Pages/Documents/Shared/Scripts/vs.js"/>
<abp-script src="/Pages/Documents/Project/index.js"/>
}
else
{
</abp-script-bundle>
}
else
{
<abp-script-bundle name="@typeof(ErrorViewComponent).FullName">
<abp-script src="/Pages/Documents/Shared/ErrorComponent/error.js"/>
}
</abp-script-bundle>
</abp-script-bundle>
}
}
@if (Model.LoadSuccess)

Loading…
Cancel
Save