feat: 增加保存默认应用程序功能
This commit is contained in:
parent
feb1b3b90c
commit
9fe03299a4
|
@ -162,7 +162,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer text-right">
|
||||
<button class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
|
||||
<button class="btn btn-secondary" type="button" @onclick="SaveDefaultApp"><i class="fa fa-save"></i><span>保存</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -223,6 +223,22 @@ namespace Bootstrap.Admin.Pages.Views.Admin.Components
|
|||
ShowMessage("保存日志缓存设置", ret);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存是否开启默认应用设置
|
||||
/// </summary>
|
||||
protected void SaveDefaultApp()
|
||||
{
|
||||
var ret = DictHelper.SaveSettings(new BootstrapDict[]{
|
||||
new BootstrapDict() {
|
||||
Category = "网站设置",
|
||||
Name = "默认应用程序",
|
||||
Code = Model.DefaultApp ? "1" : "0"
|
||||
}
|
||||
});
|
||||
RootLayout?.OnWebFooterChanged(Model.Footer);
|
||||
ShowMessage("保存默认应用程序", ret);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存网站是否为演示模式
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue