forked from github/dataease
Merge pull request #4436 from dataease/pr@dev@fix_app-update
fix(应用): 修复应用更新名称缩略图未显示问题
This commit is contained in:
commit
debbc3a0aa
@ -17,7 +17,7 @@ import java.util.List;
|
||||
* Date: 2022/9/8
|
||||
* Description:
|
||||
*/
|
||||
@Api(tags = "仪表板:应该关系")
|
||||
@Api(tags = "仪表板:应用关系")
|
||||
@ApiSupport(order = 170)
|
||||
@RestController
|
||||
@RequestMapping("appTemplate")
|
||||
|
@ -103,7 +103,7 @@ public class PanelAppTemplateService {
|
||||
PanelAppTemplateWithBLOBs requestTemplate = new PanelAppTemplateWithBLOBs();
|
||||
BeanUtils.copyBean(requestTemplate, request);
|
||||
//Store static resource into the server
|
||||
if (StringUtils.isNotEmpty(request.getSnapshot())) {
|
||||
if (StringUtils.isNotEmpty(request.getSnapshot()) && request.getSnapshot().indexOf("static-resource") == -1) {
|
||||
String snapshotName = "app-template-" + UUIDUtil.getUUIDAsString() + ".jpeg";
|
||||
staticResourceService.saveSingleFileToServe(snapshotName, request.getSnapshot().replace("data:image/jpeg;base64,", ""));
|
||||
requestTemplate.setSnapshot("/" + UPLOAD_URL_PREFIX + '/' + snapshotName);
|
||||
|
Loading…
Reference in New Issue
Block a user