From bb6aa0723e49246a91ce23ccd1c3d80ae60a71ef Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Tue, 11 Jan 2022 10:09:36 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapAdmin.DataAccess.PetaPoco/Services/DictService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blazor/admin/BootstrapAdmin.DataAccess.PetaPoco/Services/DictService.cs b/src/blazor/admin/BootstrapAdmin.DataAccess.PetaPoco/Services/DictService.cs index 88dc145a..548bd090 100644 --- a/src/blazor/admin/BootstrapAdmin.DataAccess.PetaPoco/Services/DictService.cs +++ b/src/blazor/admin/BootstrapAdmin.DataAccess.PetaPoco/Services/DictService.cs @@ -192,7 +192,7 @@ class DictService : BaseDatabase, IDict var dicts = GetAll(); // appId 为空时读取前台列表取第一个应用作为默认应用 - appId ??= GetApps().FirstOrDefault(d => d.Key != "BA").Key ?? AppId; + appId ??= GetApps().FirstOrDefault(d => d.Key != AppId).Key ?? AppId; url = dicts.FirstOrDefault(d => d.Category == "应用首页" && d.Name.Equals(appId, StringComparison.OrdinalIgnoreCase) && d.Define == EnumDictDefine.System)?.Code; return url; }