From 30e06c9c54ad3c8de8fc820d04ee1a7d9ec71d05 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: Fri, 31 Jul 2020 21:10:34 +0800 Subject: [PATCH] =?UTF-8?q?Tab=20=E5=88=87=E6=8D=A2=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=20pear.config.json=20=E9=85=8D=E7=BD=AE=20Ke?= =?UTF-8?q?epState=20=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/admin.js | 4 ++++ pear.config.json | 1 + 2 files changed, 5 insertions(+) diff --git a/component/pear/module/admin.js b/component/pear/module/admin.js index ebe8042..fdbf652 100644 --- a/component/pear/module/admin.js +++ b/component/pear/module/admin.js @@ -62,6 +62,10 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'], }] }); bodyTab.click(function(id) { + // 选 项 卡 切 换 刷 新 + if(!option.tab.keepState){ + bodyTab.refresh(200); + } bodyTab.positionTab(); sideMenu.selectItem(id); }) diff --git a/pear.config.json b/pear.config.json index 46c63e0..5b88b33 100644 --- a/pear.config.json +++ b/pear.config.json @@ -11,6 +11,7 @@ }, "tab": { "muiltTab": true, + "keepState": false, "tabMax": 30, "index": { "id": "0",