"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = _default;

function _react() {
  const data = _interopRequireDefault(require("react"));

  _react = function _react() {
    return data;
  };

  return data;
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 *  C:\GitHub\ant-design-pro\src\pages\Welcome\index.tsx
 * --->
 *   Welcome\index.tsx
 *  用与将路径变化为相对路径
 *  */
function _default({
  payload,
  api,
  success
}) {
  const _ref = payload,
        targetPath = _ref.path;
  success({
    data: api.winPath(targetPath).replace(api.winPath(api.cwd), '').replace(api.winPath(api.paths.pagesPath), '').replace(/\//g, '/').replace(/\/\//g, '/'),
    success: true
  });
}