修复导包错误以及图片预览bug

This commit is contained in:
chenkailing
2020-12-27 19:18:16 +08:00
committed by kl
parent f530f441d5
commit 7a7e1a1855
5 changed files with 7 additions and 5 deletions

View File

@ -65,6 +65,8 @@ public class OnlinePreviewController {
if(StringUtils.hasText(currentUrl)){
String decodedCurrentUrl = new String(Base64Utils.decodeFromString(currentUrl));
model.addAttribute("currentUrl", decodedCurrentUrl);
}else {
model.addAttribute("currentUrl", imgUrls.get(0));
}
return PICTURE_FILE_PREVIEW_PAGE;
}