forked from github/dataease
Merge pull request #9779 from dataease/pr@dev@perf_dynamic_url_prefix
perf: 动态配置访问路径前缀
This commit is contained in:
commit
43f4635031
@ -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) {
|
||||||
|
@ -1 +0,0 @@
|
|||||||
server.servlet.context-path=
|
|
Loading…
Reference in New Issue
Block a user