@mjhls/mjh-framework 1.0.57 → 1.0.58
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.js
CHANGED
|
@@ -3898,10 +3898,18 @@ var DeckContent = function (_React$Component) {
|
|
|
3898
3898
|
var currentPage = _this.state.currentPage;
|
|
3899
3899
|
|
|
3900
3900
|
if (seoPaginate) {
|
|
3901
|
-
|
|
3901
|
+
|
|
3902
|
+
var path = router$$1.asPath;
|
|
3903
|
+
var qrIndex = path.indexOf('?');
|
|
3904
|
+
if (qrIndex > 0) {
|
|
3905
|
+
path = path.substring(1, qrIndex);
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
pageNumber = parseInt(pageNumber);
|
|
3909
|
+
|
|
3910
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
3902
3911
|
if (currentPage !== pageNumber) {
|
|
3903
|
-
|
|
3904
|
-
console.error('pageNumber:', pageNumber);
|
|
3912
|
+
|
|
3905
3913
|
lib_3.refresh();
|
|
3906
3914
|
if (pageview) {
|
|
3907
3915
|
_this.setState({
|