From f4502c6a04df3ed4fe617ce2ff64ea093f4bed2c Mon Sep 17 00:00:00 2001 From: ChinaMoli Date: Sat, 3 Aug 2024 17:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20menu.async=20=E5=A7=8B?= =?UTF-8?q?=E7=BB=88=E4=B8=BA=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/pear/module/menu.js b/component/pear/module/menu.js index b63c6b6..bde57b7 100644 --- a/component/pear/module/menu.js +++ b/component/pear/module/menu.js @@ -13,7 +13,7 @@ layui.define(['table', 'jquery', 'element'], function (exports) { var option = { elem: opt.elem, - async: opt.async || true, + async: typeof opt.async === 'undefined' ? true : opt.async, parseData: opt.parseData, url: opt.url, method: opt.method ? opt.method : "GET", -- Gitee