diff --git a/public/static/admin/listen.js b/public/static/admin/listen.js index ba639406e..893aa02b2 100644 --- a/public/static/admin/listen.js +++ b/public/static/admin/listen.js @@ -38,7 +38,7 @@ define(['jquery', 'admin.plugs'], function () { /*! 注册 data-open 事件行为 */ this.$body.on('click', '[data-open]', function () { var url = $(this).attr('data-open'); - $.form.href(url); + $.form.href(url, this); }); /*! 注册 data-reload 事件行为 */ @@ -263,6 +263,7 @@ define(['jquery', 'admin.plugs'], function () { $('.framework-container').removeClass('framework-sidebar-full'); } /* 加载资源 */ + console.log(hash); $.form.open(hash); }; // URI初始化动作 diff --git a/public/static/admin/plugs.js b/public/static/admin/plugs.js index 7439058cd..fec26d1fb 100644 --- a/public/static/admin/plugs.js +++ b/public/static/admin/plugs.js @@ -324,9 +324,10 @@ define(['zeroclipboard', 'jquery'], function (ZeroClipboard) { /** * 打开一个内置HTML页面 * @param url + * @param obj */ - _form.prototype.href = function (url) { - window.location.href = '#' + parseUri(url); + _form.prototype.href = function (url, obj) { + window.location.href = '#' + parseUri(url, obj); }; /**