swico 0.9.0-beta11 → 0.9.0-beta12
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/package.json
CHANGED
|
@@ -88,6 +88,7 @@ var getPathNameList = function (routes) {
|
|
|
88
88
|
};
|
|
89
89
|
exports.pathNameList = getPathNameList(routes_1.default);
|
|
90
90
|
var getLocation = function (historyLocation) {
|
|
91
|
+
console.log('historyLocation', historyLocation);
|
|
91
92
|
var pathname = historyLocation.pathname, hash = historyLocation.hash, search = historyLocation.search, state = historyLocation.state;
|
|
92
93
|
var routerBaseLength = formatRouterBase.length;
|
|
93
94
|
var path = pathname.slice(routerBaseLength);
|
|
@@ -172,6 +173,8 @@ var getRouter = function (routerType) {
|
|
|
172
173
|
}
|
|
173
174
|
},
|
|
174
175
|
get location() {
|
|
176
|
+
console.log('router.state', router.state);
|
|
177
|
+
console.log('router.state.location', router.state.location);
|
|
175
178
|
return getLocation(router.state.location);
|
|
176
179
|
}
|
|
177
180
|
};
|