mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update admin.js
This commit is contained in:
parent
4ae7d3484f
commit
3ee82df090
@ -304,11 +304,11 @@ $(function () {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
/*! 以 HASH 打开新网页 */
|
/*! 以 HASH 打开新网页 */
|
||||||
this.href = function (url, ele) {
|
this.href = function (url, elem) {
|
||||||
// 重置表格页数缓存
|
this.isMenu = elem && elem.dataset.menuNode;
|
||||||
if (ele && ele.dataset.menuNode) layui.sessionData('pages', null);
|
if (this.isMenu) layui.sessionData('pages', null);
|
||||||
if (url !== '#') location.hash = $.menu.parseUri(url, ele);
|
if (url !== '#') return location.hash = $.menu.parseUri(url, elem);
|
||||||
else if (ele && ele.dataset.menuNode) $('[data-menu-node^="' + ele.dataset.menuNode + '-"]:first').trigger('click');
|
if (this.isMenu) return $('[data-menu-node^="' + elem.dataset.menuNode + '-"]:first').trigger('click');
|
||||||
};
|
};
|
||||||
/*! 加载 HTML 到 BODY 位置 */
|
/*! 加载 HTML 到 BODY 位置 */
|
||||||
this.open = function (url, data, call, load, tips) {
|
this.open = function (url, data, call, load, tips) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user