diff --git a/packages/uni-quickapp/bin/serve.js b/packages/uni-quickapp/bin/serve.js index 166d96e8ab5d6dbb8006df28c03358bf41c8c2dc..09eda84e248797b6c24bee3f47be475919101bf4 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)