@antmove/wx-alipay
Version:
transform wechat miniprogram to alipay miniprogram tool.
17 lines (13 loc) • 324 B
JavaScript
const utils = require('../../api/utils')
const { browserPath } = utils
const posix = browserPath()
function processRelationPath(self, relation) {
const from = self.is
let to = relation
if (to[0] === '.') {
to = `../${to}`
}
const _p = posix.join(from, to)
return _p
}
module.exports = processRelationPath