From 329a605e9ac2217d3a1eed0eb6863705da1f6629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 17 Sep 2021 10:21:39 +0800 Subject: [PATCH] Update admin.js --- public/static/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/admin.js b/public/static/admin.js index 0b72b1848..f3491534b 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -401,7 +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('禁止访问外部链接!'); + 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); /*! 菜单选择切换 */