diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 501826da..768c7fa1 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -173,7 +173,7 @@ $.modal.loading("正在导出数据,请稍后..."); $.post($.table._option.exportUrl, $("#" + currentId).serializeArray(), function(result) { if (result.code == web_status.SUCCESS) { - window.location.href = ctx + "common/download?fileName=" + result.msg + "&delete=" + true; + window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true; } else { $.modal.alertError(result.msg); } @@ -184,7 +184,7 @@ importTemplate: function() { $.get($.table._option.importTemplateUrl, function(result) { if (result.code == web_status.SUCCESS) { - window.location.href = ctx + "common/download?fileName=" + result.msg + "&delete=" + true; + window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true; } else { $.modal.alertError(result.msg); }