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
f96793829c
commit
329a605e9a
@ -401,7 +401,7 @@ $(function () {
|
|||||||
window.onhashchange = function () {
|
window.onhashchange = function () {
|
||||||
var hash = location.hash || '', node;
|
var hash = location.hash || '', node;
|
||||||
if (hash.length < 1) return $('[data-menu-node]:first').trigger('click');
|
if (hash.length < 1) return $('[data-menu-node]:first').trigger('click');
|
||||||
if (/^#(https?:)?\/\//.test(hash)) return $.msg.tips('禁止访问外部链接!');
|
if (/^#(https?:)?(\/\/|\\\\)/.test(hash)) return $.msg.tips('禁止访问外部链接!');
|
||||||
// $.msg.page.show(),$.form.load(hash, {}, 'get', $.msg.page.hide, true),that.syncOpenStatus(2);
|
// $.msg.page.show(),$.form.load(hash, {}, 'get', $.msg.page.hide, true),that.syncOpenStatus(2);
|
||||||
$.form.load(hash, {}, 'get', false, !$.msg.page.stat()), that.syncOpenStatus(2);
|
$.form.load(hash, {}, 'get', false, !$.msg.page.stat()), that.syncOpenStatus(2);
|
||||||
/*! 菜单选择切换 */
|
/*! 菜单选择切换 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user