diff --git a/MaterialTraceabilityUI/MainWindow.xaml.cs b/MaterialTraceabilityUI/MainWindow.xaml.cs index 9b2bb94..f6a0d39 100644 --- a/MaterialTraceabilityUI/MainWindow.xaml.cs +++ b/MaterialTraceabilityUI/MainWindow.xaml.cs @@ -271,15 +271,14 @@ namespace MaterialTraceabilityUI /// private void ConfigPage_Click(object sender, RoutedEventArgs e) { - //if (!"2".Equals(ConfigHelper.GetConfig("roleId"))) - //{ - // System.Windows.MessageBox.Show("请登录系统管理账号进行操作"); - //} - //else - //{ - // UserContent = configInfo; - //} - UserContent = configInfo; + if (!"2".Equals(ConfigHelper.GetConfig("roleId"))) + { + System.Windows.MessageBox.Show("请登录系统管理账号进行操作"); + } + else + { + UserContent = configInfo; + } } public System.Windows.Controls.UserControl _content;