From 5d0dcd2bf77a61ecef40d068f23538a6347e0cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 15 Mar 2017 11:57:06 +0800 Subject: [PATCH] =?UTF-8?q?[debug]=20=E4=BF=AE=E5=A4=8D=E5=90=8C=E5=90=8D?= =?UTF-8?q?=E8=8F=9C=E5=8D=95hash=E4=B8=8D=E5=88=87=E6=8D=A2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin/listen.js | 3 ++- public/static/admin/plugs.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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); }; /**