From f65cbcb461b863280acf4b3b05c14bf451bf423e Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 12 Mar 2020 10:17:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E5=8F=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=BC=94=E7=A4=BA=E7=B3=BB=E7=BB=9F=E5=BC=80?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/Bootstrap.Client/Models/ModelBase.cs | 6 ++++++ src/client/Bootstrap.Client/Views/Shared/Footer.cshtml | 2 +- src/client/Bootstrap.Client/Views/_ViewImports.cshtml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/client/Bootstrap.Client/Models/ModelBase.cs b/src/client/Bootstrap.Client/Models/ModelBase.cs index 63117b9b..98a81dbf 100644 --- a/src/client/Bootstrap.Client/Models/ModelBase.cs +++ b/src/client/Bootstrap.Client/Models/ModelBase.cs @@ -17,8 +17,14 @@ namespace Bootstrap.Client.Models Title = DictHelper.RetrieveWebTitle(AppId); Footer = DictHelper.RetrieveWebFooter(AppId); Theme = DictHelper.RetrieveActiveTheme(); + IsDemo = DictHelper.RetrieveSystemModel(); } + /// + /// 是否为演示系统 + /// + public bool IsDemo { get; protected set; } + /// /// 获得 应用程序标识 /// diff --git a/src/client/Bootstrap.Client/Views/Shared/Footer.cshtml b/src/client/Bootstrap.Client/Views/Shared/Footer.cshtml index 7b8a5232..396d3687 100644 --- a/src/client/Bootstrap.Client/Views/Shared/Footer.cshtml +++ b/src/client/Bootstrap.Client/Views/Shared/Footer.cshtml @@ -1,6 +1,6 @@ @model ModelBase