From 84c3be7c986421c2834be31547bb9fa97b4ed592 Mon Sep 17 00:00:00 2001 From: lvxinzhi <114926+penavicoqd@user.noreply.gitee.com> Date: Fri, 18 Feb 2022 02:32:57 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/main/resources/static/component/pe?= =?UTF-8?q?ar/module/card.js.=20card.js=E5=88=86=E9=A1=B5=E6=8A=A5?= =?UTF-8?q?=E9=94=99=EF=BC=8C=E5=85=B7=E4=BD=93=E9=94=99=E8=AF=AF=E5=A6=82?= =?UTF-8?q?=E4=B8=8B{=20"success":=20false,=20"code":=20400,=20"msg":=20"B?= =?UTF-8?q?ad=20Request",=20"data":=20[=20"Failed=20to=20convert=20propert?= =?UTF-8?q?y=20value=20of=20type=20'java.lang.String'=20to=20required=20ty?= =?UTF-8?q?pe=20'java.lang.Integer'=20for=20property=20'page';=20nested=20?= =?UTF-8?q?exception=20is=20java.lang.NumberFormatException:=20For=20input?= =?UTF-8?q?=20string:=20"1=3Ffresh=3D0.3538911045797484""=20]=20}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/component/pear/module/card.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/component/pear/module/card.js b/src/main/resources/static/component/pear/module/card.js index eb43235f..e72f6b24 100644 --- a/src/main/resources/static/component/pear/module/card.js +++ b/src/main/resources/static/component/pear/module/card.js @@ -199,7 +199,14 @@ layui.define(['table', 'laypage', 'jquery', 'element'], function (exports) { function getData(url) { var defer = $.Deferred(); - $.get(url + "?fresh=" + Math.random(), function (result) { + var _url; + if(url.indexOf('?' != -1)){ + _url = url + "&fresh=" + Math.random() + }else{ + _url = url + "?fresh=" + Math.random() + } + // $.get(url + "?fresh=" + Math.random(), function (result) { + $.get(_url, function (result) { defer.resolve(result) }); return defer.promise(); -- Gitee