From 6fe5ffeebd0035ab14fe3608495b5180837060e6 Mon Sep 17 00:00:00 2001 From: "moshowgame@126.com" Date: Wed, 10 Oct 2018 16:16:14 +0800 Subject: [PATCH] new stable cdn --- README.md | 1 + .../src/main/resources/static/js/index-new.js | 8 +-- .../templates/common/common-import.ftl | 59 +++++++++---------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 6ce2bbc..659d8bd 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ SpringBootCodeGenerator CSDN博客 http://blog.csdn.net/moshowgame 更新日期 更新内容 +20181010CDN变更,修复CDN不稳定导致网页js报错问题。 20181003新增element-ui/bootstrap生成。 20181002修复公共CDN之Layer.js404问题,导致项目无法生成。 20180927优化COMMENT提取逻辑,支持多种复杂情况的注释(感谢@raodeming的反馈)。 diff --git a/generator-web/src/main/resources/static/js/index-new.js b/generator-web/src/main/resources/static/js/index-new.js index 23fa8f8..0ee5b20 100644 --- a/generator-web/src/main/resources/static/js/index-new.js +++ b/generator-web/src/main/resources/static/js/index-new.js @@ -43,7 +43,7 @@ $(function () { dataType: "json", success: function (data) { if (data.code == 200) { - /*layer.open({ + layer.open({ icon: '1', content: "代码生成成功", end: function () { @@ -53,15 +53,15 @@ $(function () { genCodeArea.setSize('auto', 'auto'); } - });*/ + }); codeData = data.data; genCodeArea.setValue(codeData.swaggerui); genCodeArea.setSize('auto', 'auto'); } else { - /*layer.open({ + layer.open({ icon: '2', content: (data.msg || '代码生成失败') - });*/ + }); } } }); diff --git a/generator-web/src/main/resources/templates/common/common-import.ftl b/generator-web/src/main/resources/templates/common/common-import.ftl index 96c761f..2c2d9dc 100644 --- a/generator-web/src/main/resources/templates/common/common-import.ftl +++ b/generator-web/src/main/resources/templates/common/common-import.ftl @@ -5,23 +5,23 @@ - - - - - - - - + + + + + + + + - + - - - + + + @@ -29,22 +29,19 @@ <#macro commonScript> - - - - - - -<#-- jquery.slimscroll --> - -<#-- layer --> -<#----> -<#----> - - - - - + + + + + + + + + + + + +