diff --git a/CoreCms.Net.Services/Shop/CoreCmsAreaServices.cs b/CoreCms.Net.Services/Shop/CoreCmsAreaServices.cs index bca30b4..812599f 100644 --- a/CoreCms.Net.Services/Shop/CoreCmsAreaServices.cs +++ b/CoreCms.Net.Services/Shop/CoreCmsAreaServices.cs @@ -322,7 +322,7 @@ namespace CoreCms.Net.Services.Basic private void GetParentArea(List cacheAreas, int id, List outAreas) { //获取当前级别 - var model = cacheAreas.First(p => p.id == id); + var model = cacheAreas.FirstOrDefault(p => p.id == id); if (model != null) { if (outAreas.All(p => p.id != model.id)) outAreas.Add(model); diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-copyright/coreshop-copyright.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-copyright/coreshop-copyright.vue index 052be75..e831c1f 100644 --- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-copyright/coreshop-copyright.vue +++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-copyright/coreshop-copyright.vue @@ -1,7 +1,7 @@