diff --git a/Bootstrap.Admin/wwwroot/js/menus.js b/Bootstrap.Admin/wwwroot/js/menus.js index adc5d1ab..ed42c11a 100644 --- a/Bootstrap.Admin/wwwroot/js/menus.js +++ b/Bootstrap.Admin/wwwroot/js/menus.js @@ -96,10 +96,7 @@ $(function () { { title: "菜单序号", field: "Order", sortable: true }, { title: "菜单图标", field: "Icon", sortable: false, align: 'center', formatter: function (value, row, index) { - if (value) { - return $.format('', value); - } - return ""; + return value ? $.format('', value) : ""; } }, { title: "菜单路径", field: "Url", sortable: false },