From 098c650655766bb19991b7bccca1a109d60bbc5d Mon Sep 17 00:00:00 2001
From: Ming <5325253+ming21@user.noreply.gitee.com>
Date: Tue, 24 Aug 2021 16:42:56 +0800
Subject: [PATCH] update ruoyi-common/src/main/java/com/ruoyi/common/filter/XssHttpServletRequestWrapper.java. 增加available方法于XssHttpServletRequestWrapper
---
ruoyi-ui/src/utils/request.js | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js
index a510d2d..e4418b1 100644
--- a/ruoyi-ui/src/utils/request.js
+++ b/ruoyi-ui/src/utils/request.js
@@ -28,9 +28,11 @@
if (value !== null && typeof(value) !== "undefined") {
if (typeof value === 'object') {
for (const key of Object.keys(value)) {
- let params = propName + '[' + key + ']';
- var subPart = encodeURIComponent(params) + "=";
- url += subPart + encodeURIComponent(value[key]) + "&";
+ if (value[key] !== null && typeof (value[key]) !== 'undefined') {
+ let params = propName + '[' + key + ']';
+ let subPart = encodeURIComponent(params) + '=';
+ url += subPart + encodeURIComponent(value[key]) + '&';
+ }
}
} else {
url += part + encodeURIComponent(value) + "&";
@@ -64,6 +66,7 @@
location.href = '/index';
})
}).catch(() => {});
+ return Promise.reject('令牌验证失败')
} else if (code === 500) {
Message({
message: msg,
--
Gitblit v1.9.2