5.3.30-pub

This commit is contained in:
Xu Chang 2025-04-18 18:31:38 +08:00
parent 007ebdd44d
commit b5c51fc9b0
5 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ export class Navigator extends CommonNavigator {
}
search += `${k}=${typeof options[k] === 'string' ? options[k] : JSON.stringify(options[k])}`;
}
const url = pathname.replace(this.namespace, '');
const url = pathname.replace(this.namespace, '').replace('//', '/');
return {
pathname: pathname,
state: options,

View File

@ -15,7 +15,7 @@ export class Navigator extends CommonNavigator {
}
getLocation() {
const { pathname } = this.history.location;
const url = pathname.replace(this.namespace, '');
const url = pathname.replace(this.namespace, '').replace('//', '/');
return {
...this.history.location,
namespace: this.namespace,

View File

@ -22,9 +22,9 @@
"i18n-js": "^4.3.0",
"node-schedule": "^2.1.1",
"nprogress": "^0.2.0",
"oak-common-aspect": "file:../oak-common-aspect",
"oak-domain": "file:../oak-domain",
"oak-memory-tree-store": "file:../oak-memory-tree-store",
"oak-common-aspect": "^3.0.5",
"oak-domain": "^5.1.22",
"oak-memory-tree-store": "^3.3.11",
"ol": "^7.3.0",
"rc-pagination": "^4.3.0",
"react-activation": "^0.12.4",

View File

@ -38,7 +38,7 @@ export class Navigator extends CommonNavigator {
}
search += `${k}=${ typeof options[k] === 'string' ? options[k] : JSON.stringify(options[k])}`;
}
const url = pathname.replace(this.namespace, '');
const url = pathname.replace(this.namespace, '').replace('//', '/');
return {
pathname: pathname,
state: options,

View File

@ -26,7 +26,7 @@ export class Navigator extends CommonNavigator {
getLocation() {
const { pathname } = this.history.location;
const url = pathname.replace(this.namespace, '');
const url = pathname.replace(this.namespace, '').replace('//', '/');
return {
...this.history.location,
namespace: this.namespace,