feat(#I18G4J): 网站设置中开启 Blazor 后自动跳转到 Blazor

#Comment
comment #I18G4J

#Issue
close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I18G4J
This commit is contained in:
Argo Zhang 2020-01-15 19:25:45 +08:00
parent 7698ce5a1c
commit 5a3ea87d61
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 7 additions and 1 deletions

View File

@ -85,7 +85,13 @@ $(function () {
case 'saveBlazor': case 'saveBlazor':
var blazor = $('#blazor').prop('checked') ? "1" : "0"; var blazor = $('#blazor').prop('checked') ? "1" : "0";
$.bc({ $.bc({
url: Settings.url, data: { name: 'Blazor', code: blazor, category: '网站设置' }, title: 'Blazor 设置', method: "post" url: Settings.url, data: { name: 'Blazor', code: blazor, category: '网站设置' }, title: 'Blazor 设置', method: "post",
callback: function (result) {
if (result) {
// 导航到 Blazor 页面
window.location.href = $.formatUrl("Pages/Admin/Settings");
}
}
}); });
break; break;
} }