reload
parent
9def2b90ee
commit
e887e076cd
|
|
@ -261,6 +261,9 @@ layui.define(["element", "jquery", "okUtils"], function (exports) {
|
||||||
// "hello {0}".format("world");
|
// "hello {0}".format("world");
|
||||||
//`tab(${filter})`
|
//`tab(${filter})`
|
||||||
element.on("tab({0})".format(filter), function (data) {
|
element.on("tab({0})".format(filter), function (data) {
|
||||||
|
if(config.isTabRefresh){ /**切换刷新*/
|
||||||
|
$(".ok-tab-content .layui-show").find("iframe")[0].contentWindow.location.reload(true);
|
||||||
|
}
|
||||||
var index = data.index;//点击的某个tab索引
|
var index = data.index;//点击的某个tab索引
|
||||||
config = okUtils.local("okConfig") || okConfig || {};
|
config = okUtils.local("okConfig") || okConfig || {};
|
||||||
sessionStorage.setItem('lay-id', this.getAttribute('lay-id'));
|
sessionStorage.setItem('lay-id', this.getAttribute('lay-id'));
|
||||||
|
|
@ -269,10 +272,6 @@ layui.define(["element", "jquery", "okUtils"], function (exports) {
|
||||||
elTabs = $(".ok-tab-title li"),//所有已存在的tab集合
|
elTabs = $(".ok-tab-title li"),//所有已存在的tab集合
|
||||||
thatElem = $(elTabs[index]);//当前元素
|
thatElem = $(elTabs[index]);//当前元素
|
||||||
saveTabMenuFun($);
|
saveTabMenuFun($);
|
||||||
|
|
||||||
if(config.isTabRefresh){ /**切换刷新*/
|
|
||||||
$(".ok-tab-content .layui-show").find("iframe")[0].contentWindow.location.reload(true);
|
|
||||||
}
|
|
||||||
that.positionTab(elMove, thatElem);
|
that.positionTab(elMove, thatElem);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue