提交 38f36d58 编写于 作者: d-u-a's avatar d-u-a

quickapp: 更新serve判断逻辑 windows平台 "/" 为 "\"

上级 cdeb194d
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册