refactor(仪表板): 增加使用旧版本仪表板模板的提示

This commit is contained in:
wangjiahao 2022-08-29 16:03:17 +08:00
parent 1ce3ddf574
commit e09b420fe2

View File

@ -412,6 +412,9 @@ public class PanelGroupService {
mobileLayout = panelViewService.havaMobileLayout(templateData);
}
Map<String, String> dynamicDataMap = gson.fromJson(dynamicData, Map.class);
if(dynamicDataMap == null){
DataEaseException.throwException("Please use the template after v1.9");
}
List<PanelViewInsertDTO> panelViews = new ArrayList<>();
List<PanelGroupExtendDataDTO> viewsData = new ArrayList<>();