From a7350294e881d1f82259b5e42f89e1d2f390340f Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 23 Feb 2022 09:03:31 +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=E6=94=AF=E6=8C=81=E5=A4=8D=E5=88=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/tool/gen/gen.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 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 a0150f16..24572d30 100644 --- a/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html +++ b/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html @@ -148,11 +148,12 @@ $.each(result.data, function(index, 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)){ - var language = templateName.substring(templateName.lastIndexOf(".") + 1); - var highCode = hljs.highlight(language, value).value; - items.push({ - title: templateName , content: "
" + highCode + "
" - }) + var codeName = templateName.replace(".", ""); + var language = templateName.substring(templateName.lastIndexOf(".") + 1); + var highCode = hljs.highlight(language, value).value; + items.push({ + title: templateName , content: "
 复制" + highCode + "