From fd8caa01e99968c87408c0daa11aaa73a3c6fd16 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 20 Feb 2021 11:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E8=AF=AD=E8=A8=80=E6=A0=B9=E6=8D=AE=E5=90=8E=E7=BC=80?= =?UTF-8?q?=E5=90=8D=E9=AB=98=E4=BA=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/tool/gen/gen.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html b/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html index 0a172373..d2ad57a1 100644 --- a/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html +++ b/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html @@ -143,10 +143,11 @@ if (result.code == web_status.SUCCESS) { var items = []; $.each(result.data, function(index, value) { - var highCode = hljs.highlightAuto(value).value; var templateName = index.substring(index.lastIndexOf("/") + 1, index.length).replace(/\.vm/g, ""); if(!$.common.equals("sql", templateName) && !$.common.equals("tree.html", templateName) && !$.common.equals("sub-domain.java", templateName)){ - items.push({ + var language = templateName.substring(templateName.lastIndexOf(".") + 1); + var highCode = hljs.highlight(language, value).value; + items.push({ title: templateName , content: "
" + highCode + "
" }) }