diff --git a/System.Application.SteamTools.Client.Desktop/UI/ViewModels/ViewModelBase.cs b/System.Application.SteamTools.Client.Desktop/UI/ViewModels/ViewModelBase.cs index d76fb4dc9..0e65fc170 100644 --- a/System.Application.SteamTools.Client.Desktop/UI/ViewModels/ViewModelBase.cs +++ b/System.Application.SteamTools.Client.Desktop/UI/ViewModels/ViewModelBase.cs @@ -23,12 +23,6 @@ namespace System.Application.UI.ViewModels /// public static bool IsInDesignMode { get; set; } - protected static TViewModel GetViewModel() where TViewModel : ViewModelBase, new() - { - if (IsInDesignMode) return new TViewModel(); - return DI.Get(); - } - /// /// 释放该实例使用的所有资源 ///