diff --git a/BBWY.Client/ViewModels/MainViewModel.cs b/BBWY.Client/ViewModels/MainViewModel.cs index f4ae849b..c818b72f 100644 --- a/BBWY.Client/ViewModels/MainViewModel.cs +++ b/BBWY.Client/ViewModels/MainViewModel.cs @@ -148,10 +148,20 @@ namespace BBWY.Client.ViewModels GlobalContext.User = mdsUserResponse.Data.Map(); #if RELEASE if (GlobalContext.User.TeamName == "财务部") + { App.Current.Dispatcher.Invoke(() => { for (var i = 0; i < 3; i++) { MenuList.RemoveAt(0); } }); + } + else + { + App.Current.Dispatcher.Invoke(() => + { + MenuList.RemoveAt(MenuList.Count() - 1); + }); + } + #endif //请求用户信息接口