From 7cb78e00a8e85ee5f2effae15a230ecbea4ac00f Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 17 Dec 2021 18:14:56 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=94=AF=E6=8C=81=20template=20?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=20list=20=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/browsers/runner.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/browsers/runner.ts b/src/main/browsers/runner.ts index 1dd3235..0af781a 100644 --- a/src/main/browsers/runner.ts +++ b/src/main/browsers/runner.ts @@ -14,7 +14,9 @@ const getPreloadPath = (plugin, pluginIndexPath) => { } return path.resolve(pluginIndexPath.replace("file:", ""), `../`, preload); } - + if (tplPath) { + return path.resolve(indexPath.replace("file:", ""), `./`, preload); + } return path.resolve(pluginIndexPath.replace("file:", ""), `../`, preload); };