@page "/ChangePassword/{FirstLogin:bool}"

    <Modal Title="修改密码" 
       Visible="true"
       OnOk="@OnSubmit"
       OnCancel="@OnCancel"
       OkText="@("修改")"
       CancelText="@("取消")"
       MaskClosable="false" DestroyOnClose>
        <div class="login-NavLogin">
            <div style="padding:30px">
                @if (FirstLogin)
                {
                    <div><b>您是第一次登录，为保证您的安全，请修改初始密码！</b></div>
                }
                @if (!string.IsNullOrEmpty(ErrorMsg))
                {
                    <div>@ErrorMsg</div>
                }
                <Card  Style="width:400px">
                    <Body>
                        <Form Model="@dto">
                            <FormItem>
                                <Space Direction="DirectionVHType.Vertical" Style="width:100%">
                                    <SpaceItem>
                                        <AntDesign.Input Placeholder="旧密码" Size="@InputSize.Large" @bind-Value="context.oldPassword" type="password">
                                            <Prefix><Icon Type="lock"></Icon></Prefix>
                                        </AntDesign.Input>
                                        <br />
                                    </SpaceItem>
                                    <SpaceItem>
                                        <AntDesign.Input Placeholder="新密码" Size="@InputSize.Large" @bind-Value="context.newPassword" type="password">
                                            <Prefix><Icon Type="lock"></Icon></Prefix>
                                        </AntDesign.Input>
                                    </SpaceItem>
                                    <SpaceItem>
                                        <AntDesign.Input Placeholder="新密码确认" Size="@InputSize.Large" @bind-Value="ChecknewPassword" type="password">
                                            <Prefix><Icon Type="lock"></Icon></Prefix>
                                        </AntDesign.Input>
                                    </SpaceItem>
                                </Space>
                            </FormItem>
                        </Form>
                    </Body>
                </Card>
            </div>
        </div>
    </Modal>