Merge pull request #1776 from dataease/pr@dev@fix_refresh_link

fix: 重新开启链接后,老的链接无效
This commit is contained in:
fit2cloud-chenyw 2022-02-15 17:08:29 +08:00 committed by GitHub
commit abe6f072c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,9 @@ public class PanelLinkService {
example.createCriteria().andUuidEqualTo(uuid);
List<PanelLinkMapping> mappings = panelLinkMappingMapper.selectByExample(example);
if (CollectionUtils.isEmpty(mappings)) {
DEException.throwException("link is not exist");
PanelLink panelLink = new PanelLink();
panelLink.setResourceId("error-resource-id");
return BASEURL + buildLinkParam(panelLink);
}
PanelLinkMapping mapping = mappings.get(0);
String resourceId = mapping.getResourceId();