Skip to content
Permalink
Browse files
框架hash禁止访问外部链接
  • Loading branch information
zoujingli committed Sep 17, 2021
1 parent c4b2163 commit 4469f7f602c9638b106c71cc67739020220c4eb2
Showing with 1 addition and 0 deletions.
  1. +1 −0 public/static/admin.js
@@ -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);
/*! 菜单选择切换 */

0 comments on commit 4469f7f

Please sign in to comment.