From bfa366ebb5e9a275b210efbdf4ead04be05fa7d4 Mon Sep 17 00:00:00 2001 From: yyang Date: Tue, 16 Jun 2020 19:47:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AF=B9=E5=A4=9A?= =?UTF-8?q?=E7=BA=A7=E7=9B=AE=E5=BD=95=E7=9A=84=E6=94=AF=E6=8C=81=E3=80=82?= =?UTF-8?q?=E5=8E=9F=E7=89=88=E6=9C=AC=E5=8F=AA=E6=94=AF=E6=8C=81=E4=B8=80?= =?UTF-8?q?=E7=BA=A7=E5=AD=90=E7=9B=AE=E5=BD=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index de7f0b9..50eacbc 100644 --- a/index.js +++ b/index.js @@ -92,9 +92,16 @@ module.exports = { baseName = pathToken[0].split('.')[0] } else { - chapterPath = pathToken[0] - assetPath = '../assets/images/uml/' + chapterPath + '/' - baseName = pathToken[1].split('.')[0] + //chapterPath = pathToken[0] + //assetPath = '../assets/images/uml/' + chapterPath + '/' + var chapterDir = pathToken.slice(0, pathToken.length - 1); + chapterPath = chapterDir.reduce((a, b) => a + "/" + b); + assetPath = 'assets/images/uml/' + chapterPath + '/' + for (var i = 0; i Date: Tue, 16 Jun 2020 19:56:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85e7c1d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.idea/