InputPassword 组件登录后出现There is no browser renderer with ID 0.
syp10000 opened this issue · comments
syp10000 commented
我在winform中集成了blazor,winform 启动的时候会先打开登录,然后再登录后,进行跳转到相应的页面,现在出现登录页面使用InputPassword组件后,登录后跳转出错:There is no browser renderer with ID 0.,如果把InputPassword换成 Input,登录不会报错
代码如下:
Model="@model"
LabelColSpan="6"
WrapperColSpan="18"
OnFinish="OnFinish"
OnFinishFailed="OnFinishFailed">
<FormItem Label="用户名">
<Input Placeholder="请输入用户名" @bind-Value="@context.Username" Size="@InputSize.Large"/>
</FormItem>
<FormItem Label="密码">
<InputPassword @bind-Value="@context.Password" Placeholder="请输入密码" Size="@InputSize.Large" />
</FormItem>
<FormItem WrapperColOffset="6" WrapperColSpan="6">
<Button Type="@ButtonType.Primary" HtmlType="submit" Style="width:200px;height:50px;font-size:20px;font-weight:700;">
登 录
</Button>
</FormItem>
</Form>
navigationManager.NavigateTo("/Welcome", true)跳转后的界面错误如下
syp10000 commented
update version Microsoft.Web.WebView2.dll and Microsoft.AspNetCore.Components.WebView.dll solve it ,run ok