Skip to content

Commit

Permalink
框架hash禁止访问外部链接
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Sep 17, 2021
1 parent c4b2163 commit 4469f7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/static/admin.js
Expand Up @@ -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);
/*! 菜单选择切换 */
Expand Down

0 comments on commit 4469f7f

Please sign in to comment.