Browse Source

更正注册对象名

yijia
shanji 2 years ago
parent
commit
a33e13ed19
  1. 2
      BBWYB.Client/GlobalContext.cs
  2. 2
      BBWYB.Client/Views/WebB/WebB.xaml.cs

2
BBWYB.Client/GlobalContext.cs

@ -52,7 +52,7 @@ namespace BBWYB.Client
return JsonConvert.SerializeObject(User); return JsonConvert.SerializeObject(User);
} }
public string GetBBWYBApiVersion() public string GetClientApiVersion()
{ {
return BBWYBApiVersion; return BBWYBApiVersion;
} }

2
BBWYB.Client/Views/WebB/WebB.xaml.cs

@ -75,7 +75,7 @@ namespace BBWYB.Client.Views.WebB
//var url = "http://qtbbwy.qiyue666.com"; //var url = "http://qtbbwy.qiyue666.com";
w2m.CoreWebView2InitializationCompleted = (e) => w2m.CoreWebView2InitializationCompleted = (e) =>
{ {
w2m.wb2.CoreWebView2.AddHostObjectToScript("qtbbwybContext", this.globalContext); w2m.wb2.CoreWebView2.AddHostObjectToScript("webContext", this.globalContext);
isNavigated = true; isNavigated = true;
w2m.wb2.CoreWebView2.Navigate(url); w2m.wb2.CoreWebView2.Navigate(url);
}; };

Loading…
Cancel
Save