修复关注碎片报错的问题
This commit is contained in:
parent
1fccc85b77
commit
4840715ef8
|
@ -71,8 +71,6 @@ public partial class App : Application
|
|||
// Views and ViewModels
|
||||
services.AddTransient<SettingsViewModel>();
|
||||
services.AddTransient<SettingsPage>();
|
||||
//services.AddTransient<MainViewModel>();
|
||||
//services.AddTransient<MainPage>();
|
||||
|
||||
services.AddTransient<HomePageViewModel>();
|
||||
services.AddTransient<HomePage>();
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace RustTools.Views;
|
|||
public sealed partial class Concern : Page
|
||||
{
|
||||
public ConcernViewModel ConcernViewModel { get; set; }
|
||||
public Concern(string v)
|
||||
public Concern()
|
||||
{
|
||||
ConcernViewModel = App.GetService<ConcernViewModel>();
|
||||
InitializeComponent();
|
||||
|
|
Loading…
Reference in New Issue
Block a user