This commit is contained in:
DismissedLight
2023-10-11 20:50:21 +08:00
parent 8de526274a
commit e7233fbf2a

View File

@@ -17,11 +17,11 @@ internal interface ISupportLoginByWebView
try
{
await webView2.EnsureCoreWebView2Async();
await webView2.CoreWebView2.DeleteCookiesAsync("https://user.mihoyo.com").ConfigureAwait(true);
await webView2.CoreWebView2.DeleteCookiesAsync(cookie).ConfigureAwait(true);
webView2.CoreWebView2.DisableDevToolsOnReleaseBuild();
webView2.CoreWebView2.DisableAutoCompletion();
webView2.CoreWebView2.Navigate("https://user.mihoyo.com/#/login/password");
webView2.CoreWebView2.Navigate(navigate);
}
catch (Exception ex)
{