Tab 切换刷新加入 pear.config.json 配置 KeepState 选项

develop
就眠仪式 2020-07-31 21:10:34 +08:00
parent 5592172ce6
commit 30e06c9c54
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,10 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
}] }]
}); });
bodyTab.click(function(id) { bodyTab.click(function(id) {
// 选 项 卡 切 换 刷 新
if(!option.tab.keepState){
bodyTab.refresh(200);
}
bodyTab.positionTab(); bodyTab.positionTab();
sideMenu.selectItem(id); sideMenu.selectItem(id);
}) })

View File

@ -11,6 +11,7 @@
}, },
"tab": { "tab": {
"muiltTab": true, "muiltTab": true,
"keepState": false,
"tabMax": 30, "tabMax": 30,
"index": { "index": {
"id": "0", "id": "0",