update 优化OSS异常判断

This commit is contained in:
疯狂的狮子li
2021-08-17 11:43:14 +08:00
parent 52d0d62c35
commit 5bfb2dae13
2 changed files with 8 additions and 5 deletions

View File

@ -42,9 +42,11 @@ export function downLoadExcel(url, params) {
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) + "=";
urlparams += subPart + encodeURIComponent(value[key]) + "&";
if (value[key] !== null && typeof (value[key]) !== 'undefined') {
let params = propName + '[' + key + ']';
let subPart = encodeURIComponent(params) + "="
urlparams += subPart + encodeURIComponent(value[key]) + "&";
}
}
} else {
urlparams += part + encodeURIComponent(value) + "&";