mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
框架hash禁止访问外部链接
This commit is contained in:
parent
c4b2163b9f
commit
4469f7f602
@ -401,6 +401,7 @@ $(function () {
|
||||
window.onhashchange = function () {
|
||||
var hash = location.hash || '', node;
|
||||
if (hash.length < 1) return $('[data-menu-node]:first').trigger('click');
|
||||
if (/^#(https?:)?\/\//.test(hash)) return $.msg.tips('禁止访问外部链接!');
|
||||
// $.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);
|
||||
/*! 菜单选择切换 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user