@mjhls/mjh-framework 1.0.57 → 1.0.59
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.
- package/dist/index.es.js +12 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Component, useState,
|
|
1
|
+
import React__default, { Component, useState, createElement, createContext } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import reactDom from 'react-dom';
|
|
4
4
|
import Row from 'react-bootstrap/Row';
|
|
@@ -3891,10 +3891,18 @@ var DeckContent = function (_React$Component) {
|
|
|
3891
3891
|
var currentPage = _this.state.currentPage;
|
|
3892
3892
|
|
|
3893
3893
|
if (seoPaginate) {
|
|
3894
|
-
|
|
3894
|
+
|
|
3895
|
+
var path = router.asPath;
|
|
3896
|
+
var qrIndex = path.indexOf('?');
|
|
3897
|
+
if (qrIndex > 0) {
|
|
3898
|
+
path = path.substring(1, qrIndex);
|
|
3899
|
+
}
|
|
3900
|
+
|
|
3901
|
+
pageNumber = parseInt(pageNumber);
|
|
3902
|
+
|
|
3903
|
+
var newPath = pageNumber === 1 ? '' + path : '?page=' + pageNumber;
|
|
3895
3904
|
if (currentPage !== pageNumber) {
|
|
3896
|
-
|
|
3897
|
-
console.error('pageNumber:', pageNumber);
|
|
3905
|
+
|
|
3898
3906
|
lib_3.refresh();
|
|
3899
3907
|
if (pageview) {
|
|
3900
3908
|
_this.setState({
|