@zat-design/sisyphus-react 3.1.5-beta.1 → 3.1.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -389,6 +389,9 @@ var ProHeader = function ProHeader(props) {
389
389
  var onConfirm = function onConfirm() {
390
390
  if (!isConfirmBack) {
391
391
  onBack && onBack();
392
+ if (!onBack) {
393
+ window.history.back();
394
+ }
392
395
  return false;
393
396
  }
394
397
  _Modal.confirm(_objectSpread({
@@ -387,6 +387,9 @@ var ProHeader = function ProHeader(props) {
387
387
  var onConfirm = function onConfirm() {
388
388
  if (!isConfirmBack) {
389
389
  onBack && onBack();
390
+ if (!onBack) {
391
+ window.history.back();
392
+ }
390
393
  return false;
391
394
  }
392
395
  _antd.Modal.confirm((0, _objectSpread2.default)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.1.5-beta.1",
3
+ "version": "3.1.5-beta.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",