ant-design-blazor / blazor-pro-components

Pro Components of Blazor. 🏆 Use Ant Design like a Pro!
Apache License 2.0
146 stars 43 forks source link

BasicLayout.BaseURL not work #111

Open witskeeper opened 1 month ago

witskeeper commented 1 month ago

Set BaseURL to "/admin" but it does not work; the logo URL value is still "/".

@namespace NetCorePal.D3Shop.Web.Admin.Layouts
@inherits LayoutComponentBase

<AntDesign.ProLayout.BasicLayout
    Title="Admin"
    BaseURL="/admin"
    Logo="@("https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg")"
    MenuData="_menuData"
    MenuAccordion
    @bind-Collapsed="collapsed">
    <HeaderContentRender>
        <Space Size="@("24")">
            <SpaceItem>
                <Icon Class="action" Type="@(collapsed?"menu-unfold":"menu-fold")" OnClick="Toggle" />
            </SpaceItem>
            <SpaceItem>
                <Icon Class="action" Type="reload" Theme="outline" OnClick="Reload" />
            </SpaceItem>
        </Space>
    </HeaderContentRender>
    <RightContentRender>
    </RightContentRender>
    <ChildContent>
        <ReuseTabs></ReuseTabs>
    </ChildContent>
    <FooterRender>
        <FooterView Copyright="2021 Ant Design Blazor" Links="Links"></FooterView>
    </FooterRender>
</AntDesign.ProLayout.BasicLayout>

<SettingDrawer />

@code{
    bool collapsed;

    public LinkItem[] Links =
    {
            new LinkItem
            {
                Key = "Ant Design Blazor",
                Title = "Ant Design Blazor",
                Href = "https://antblazor.com",
                BlankTarget = true,
            },
            new LinkItem
            {
                Key = "github",
                Title = (RenderFragment)(@<Icon Type="github" />),
                Href = "https://github.com/ant-design-blazor/ant-design-pro-blazor",
                BlankTarget = true,
            },
            new LinkItem
            {
                Key = "Blazor",
                Title = "Blazor",
                Href = "https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor?WT.mc_id=DT-MVP-5003987",
                BlankTarget = true,
            }
    };

    void Toggle()
    {
        collapsed = !collapsed;
    }

}
witskeeper commented 1 month ago

using 1.0.0-rc.2