您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

1 行
3.1 KiB

  1. {"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar _jsxFileName = \"C:\\\\tbg-ecomm-nextjs\\\\pages\\\\index.js\";\nvar __jsx = React.createElement;\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nimport React, { Component } from \"react\";\nimport Router from \"next/router\";\n\nvar Index = /*#__PURE__*/function (_Component) {\n _inherits(Index, _Component);\n\n var _super = _createSuper(Index);\n\n function Index() {\n var _this;\n\n _classCallCheck(this, Index);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"componentDidMount\", function () {\n Router.push(\"/home\");\n });\n\n return _this;\n }\n\n _createClass(Index, [{\n key: \"render\",\n value: function render() {\n return __jsx(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 12\n }\n });\n }\n }]);\n\n return Index;\n}(Component);\n\nexport { Index as default };","map":{"version":3,"sources":["C:/tbg-ecomm-nextjs/pages/index.js"],"names":["React","Component","Router","Index","push"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,MAAP,MAAmB,aAAnB;;IAEqBC,K;;;;;;;;;;;;;;;;wEACC,YAAM;AACxBD,MAAAA,MAAM,CAACE,IAAP,CAAY,OAAZ;AACD,K;;;;;;;WAED,kBAAS;AACP,aAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAP;AACD;;;;EAPgCH,S;;SAAdE,K","sourcesContent":["import React, { Component } from \"react\";\r\nimport Router from \"next/router\";\r\n\r\nexport default class Index extends Component {\r\n componentDidMount = () => {\r\n Router.push(\"/home\"); \r\n };\r\n\r\n render() {\r\n return <div />;\r\n }\r\n}"]},"metadata":{},"sourceType":"module"}