diff --git a/ruoyi-ui/src/views/monitor/job/log.vue b/ruoyi-ui/src/views/monitor/job/log.vue index d9f79b51..4ead6340 100644 --- a/ruoyi-ui/src/views/monitor/job/log.vue +++ b/ruoyi-ui/src/views/monitor/job/log.vue @@ -87,7 +87,7 @@ icon="el-icon-download" size="mini" @click="handleExport" - v-hasPermi="['monitor:jobLog:export']" + v-hasPermi="['monitor:job:export']" >导出 diff --git a/ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java b/ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java index 617c8cc7..b9f13735 100644 --- a/ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java +++ b/ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java @@ -41,8 +41,7 @@ public class IpUtils { ip = request.getRemoteAddr(); } - ip = EscapeUtil.clean(ip);// 清除Xss特殊字符 - return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : ip; + return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : EscapeUtil.clean(ip); } public static boolean internalIp(String ip)