From e1d91bd889d84a590e5d106873dc166c68241b57 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 20 Mar 2019 18:12:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=9Ame?= =?UTF-8?q?nus.js=E8=84=9A=E6=9C=AC=E8=8F=9C=E5=8D=95=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E9=87=8D=E6=9E=84=EF=BC=8C=E7=B2=BE=E7=AE=80?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/wwwroot/js/menus.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 },