From 38f36d582560bf0d635e97c974af65f430a422bd Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 1 Apr 2020 14:56:40 +0800 Subject: [PATCH] =?UTF-8?q?quickapp:=20=E6=9B=B4=E6=96=B0serve=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91=20windows=E5=B9=B3=E5=8F=B0=20"/"?= =?UTF-8?q?=20=E4=B8=BA=20"\"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-quickapp/bin/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-quickapp/bin/serve.js b/packages/uni-quickapp/bin/serve.js index 166d96e8a..09eda84e2 100644 --- a/packages/uni-quickapp/bin/serve.js +++ b/packages/uni-quickapp/bin/serve.js @@ -2,7 +2,7 @@ const path = require('path') const moduleAlias = require('module-alias') moduleAlias.addAlias('../service', (fromPath, request, alias) => { // @hap-toolkit/packager/lib/router/routes/index.js - if (fromPath.indexOf('/@hap-toolkit') !== -1 && fromPath.indexOf('packager') !== -1) { + if (fromPath.indexOf('@hap-toolkit') !== -1 && fromPath.indexOf('packager') !== -1) { return path.resolve(__dirname, 'service.js') } return path.join(fromPath, '..', request) -- GitLab