diff --git a/src/utils/encryption/signMd5Utils.js b/src/utils/encryption/signMd5Utils.js index 6f13978..1a66e11 100644 --- a/src/utils/encryption/signMd5Utils.js +++ b/src/utils/encryption/signMd5Utils.js @@ -53,8 +53,11 @@ export default class signMd5Utils { if (lastpathVariable.includes('?')) { lastpathVariable = lastpathVariable.substring(0, lastpathVariable.indexOf('?')); } + //update-begin---author:wangshuai ---date:20221103 for:[issues/183]下拉搜索,使用动态字典,在线页面不报错,生成的代码报错 ------------ //解决Sign 签名校验失败 #2728 - result['x-path-variable'] = decodeURI(lastpathVariable); + //decodeURI对特殊字符没有没有编码和解码的能力,需要使用decodeURIComponent + result['x-path-variable'] = decodeURIComponent(lastpathVariable); + //update-end---author:wangshuai ---date:20221103 for:[issues/183]下拉搜索,使用动态字典,在线页面不报错,生成的代码报错 ------------ } if (urlArray && urlArray[1]) { let paramString = urlArray[1],