完成预览卡片列表加载以及数据定时刷新

This commit is contained in:
柏码の讲师 2023-12-02 00:21:57 +08:00
parent 42b6c9370d
commit 7dc1b8218b
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ public class RequestLogFilter extends OncePerRequestFilter {
@Resource @Resource
SnowflakeIdGenerator generator; SnowflakeIdGenerator generator;
private final Set<String> ignores = Set.of("/swagger-ui", "/v3/api-docs", "/monitor/runtime"); private final Set<String> ignores = Set.of("/swagger-ui", "/v3/api-docs", "/monitor/runtime", "/api/monitor/list");
@Override @Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {

View File

@ -47,7 +47,7 @@ const copyIp = () => {
<i class="fa-solid fa-microchip"></i> <i class="fa-solid fa-microchip"></i>
<span style="margin-right: 10px">{{` ${data.cpuCore} CPU`}}</span> <span style="margin-right: 10px">{{` ${data.cpuCore} CPU`}}</span>
<i class="fa-solid fa-memory"></i> <i class="fa-solid fa-memory"></i>
<span>{{` ${data.memory} GB`}}</span> <span>{{` ${data.memory.toFixed(1)} GB`}}</span>
</div> </div>
<div class="progress"> <div class="progress">
<span>{{ `CPU: ${(data.cpuUsage * 100).toFixed(1)} %` }}</span> <span>{{ `CPU: ${(data.cpuUsage * 100).toFixed(1)} %` }}</span>