You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.9 KiB
33 lines
1.9 KiB
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[35],{
|
|
|
|
/***/ "y3wM":
|
|
/*!*********************************!*\
|
|
!*** ./src/pages/Api/index.tsx ***!
|
|
\*********************************/
|
|
/*! exports provided: default */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/.umi-production/core/routes.ts (referenced with import()) */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _Users_dingyongkang_Documents_workspace_zhiqing_educoder_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends */ "0Owb");
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "cDcd");
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/env */ "m3rI");
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function (_ref) {
|
|
var props = Object(_Users_dingyongkang_Documents_workspace_zhiqing_educoder_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, _ref);
|
|
|
|
// console.log("props:",props)
|
|
Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
|
|
window.location.href = _utils_env__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].API_SERVER + props.location.pathname + props.location.search;
|
|
}, [props.location.pathname]);
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null);
|
|
});
|
|
|
|
/***/ })
|
|
|
|
}]); |