Merge pull request #9779 from dataease/pr@dev@perf_dynamic_url_prefix

perf: 动态配置访问路径前缀
This commit is contained in:
fit2cloud-chenyw 2024-05-22 17:52:53 +08:00 committed by GitHub
commit 43f4635031
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -281,7 +281,7 @@ public class PanelLinkService {
List<PanelLinkMapping> mappings = panelLinkMappingMapper.selectByExample(example); List<PanelLinkMapping> mappings = panelLinkMappingMapper.selectByExample(example);
PanelLinkMapping mapping = mappings.get(0); PanelLinkMapping mapping = mappings.get(0);
String uuid = mapping.getUuid(); String uuid = mapping.getUuid();
return contextPath + SHORT_URL_PREFIX + (StringUtils.isBlank(uuid) ? mapping.getId() : uuid); return (StringUtils.isNotBlank(contextPath) ? contextPath : "") + SHORT_URL_PREFIX + (StringUtils.isBlank(uuid) ? mapping.getId() : uuid);
} }
public String saveTicket(TicketCreator creator) { public String saveTicket(TicketCreator creator) {

View File

@ -1 +0,0 @@
server.servlet.context-path=