diff --git a/generator-web/src/main/resources/templates/index.ftl b/generator-web/src/main/resources/templates/index.ftl index 8612b49..c7234e5 100644 --- a/generator-web/src/main/resources/templates/index.ftl +++ b/generator-web/src/main/resources/templates/index.ftl @@ -108,6 +108,28 @@ } }); + function getVersion(){ + var gitVersion ; + $.ajax({ + type: 'GET', + url: "https://raw.githubusercontent.com/moshowgame/SpringBootCodeGenerator/master/generator-web/src/main/resources/static/version.json", + dataType: "json", + success: function (data) { + gitVersion = data.version; + $.ajax({ + type: 'GET', + url: base_url + "/static/version.json", + dataType: "json", + success: function (data) { + $.toast("#当前版本:"+data.version+" | github:"+gitVersion); + } + }); + } + }); + } + $('#version').on('click', function(){ + getVersion(); + }); }); @@ -131,7 +153,7 @@

√基于SpringBoot2+Freemarker的代码生成器,√以释放双手为目的,√支持mysql/oracle/pgsql三大数据库,
√用DDL-SQL语句生成JPA/JdbcTemplate/Mybatis/MybatisPlus/BeetlSQL相关代码。
- 欢迎大家多多提交模板和交流想法,如果发现有SQL语句不能识别,请留言,同时欢迎大家提PR点击赞赏,谢谢! + 如果发现有SQL语句不能识别,请留言,同时欢迎大家提PR赞赏,谢谢!查看版本