From 39695b02290ed24b446d4d36a1f2213fbd997700 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 13 Sep 2017 10:18:03 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E5=A4=8Dform?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=97=B6page=E6=9C=AA=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=95=B0=E6=8D=AE=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20#48?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/admin/listen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/admin/listen.js b/static/admin/listen.js index 88ebb3867..edc511a96 100644 --- a/static/admin/listen.js +++ b/static/admin/listen.js @@ -30,7 +30,7 @@ define(['jquery', 'admin.plugs'], function () { /*! 注册 data-serach 表单搜索行为 */ this.$body.on('submit', 'form.form-search', function () { - var url = $(this).attr('action'), split = url.indexOf('?') === -1 ? '?' : '&'; + var url = $(this).attr('action').replace(/\&?page\=\d+/g, ''), split = url.indexOf('?') === -1 ? '?' : '&'; if ((this.method || 'get').toLowerCase() === 'get') { return window.location.href = '#' + $.menu.parseUri(url + split + $(this).serialize()); }