From 7df078ec9c96fa29b489d16b88efa78560d30491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Tue, 26 Jan 2021 23:17:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20tab=20menu=20=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/modules/admin.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/component/pear/modules/admin.js b/component/pear/modules/admin.js index 67a2e30..2d7a028 100644 --- a/component/pear/modules/admin.js +++ b/component/pear/modules/admin.js @@ -122,10 +122,12 @@ layui.define(['table', 'jquery', 'element', 'yaml','form', 'tab', 'menu', 'frame close: false }], success: function(id){ - setTimeout(function(){ - sideMenu.selectItem(id); - bodyTab.positionTab(); - },500) + if(param.tab.session){ + setTimeout(function(){ + sideMenu.selectItem(id); + bodyTab.positionTab(); + },500) + } } }); bodyTab.click(function(id) {