@uiw-admin/exceptions
Version:
43 lines (42 loc) • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _uiw = require("uiw");
var _reactRouter = require("react-router");
var _jsxRuntime = require("react/jsx-runtime");
var Exception500 = function Exception500(_ref) {
var _ref$path = _ref.path,
path = _ref$path === void 0 ? '/home' : _ref$path,
_ref$btnText = _ref.btnText,
btnText = _ref$btnText === void 0 ? '返回首页' : _ref$btnText;
var navigate = (0, _reactRouter.useNavigate)();
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
className: "exceptions",
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
className: "contentimgs",
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
className: "imgscontent imgs500"
})
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
className: "contents",
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h1", {
children: "500"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
children: "\u62B1\u6B49\uFF0C\u670D\u52A1\u5668\u51FA\u9519\u4E86"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_uiw.Button, {
onClick: function onClick() {
return navigate(path, {
replace: true
});
},
type: "primary",
children: btnText
})]
})]
});
};
var _default = Exception500;
exports["default"] = _default;
module.exports = exports.default;