code: function resolvePath(_path, relativePath = currentWorkDir) {
    if (!isString(_path) || _path.startsWith('~')) {
      return _path;
    }
    const file = nativePath.relative(relativePath, _path);
    return nativePath.join(relativePath, file);
  }
docs: 根据相对地址获取绝对路径
  @param {String} _path
  @param {String} relativePath