swico 0.9.0-beta11 → 0.9.0-beta13

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "0.9.0-beta11",
3
+ "version": "0.9.0-beta13",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "react": "~18.2.0",
34
34
  "react-dom": "~18.2.0",
35
- "react-router-dom": "6.22.3",
35
+ "react-router-dom": "6.20.0",
36
36
  "vue": "~3.4.14",
37
37
  "vue-router": "^4.2.5"
38
38
  },
@@ -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
  };