From 60fa96f81f5b13dd651d75422d5ed32c12ba7576 Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Mon, 5 Jun 2023 11:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20tab=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E7=B4=A2=E5=BC=95=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/element.js b/src/modules/element.js index efc03288..87153acd 100644 --- a/src/modules/element.js +++ b/src/modules/element.js @@ -152,7 +152,7 @@ layui.define('jquery', function(exports){ // Tab 删除 ,tabDelete: function(e, othis){ var li = othis || $(this).parent(); - var index = li.index('li[lay-id]'); + var index = li.index('li'); var tabElem = li.closest('.layui-tab'); var item = tabElem.children('.layui-tab-content').children('.layui-tab-item'); var filter = tabElem.attr('lay-filter');