wevu 6.8.0 → 6.9.1

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.
Files changed (2) hide show
  1. package/dist/router.mjs +4 -2
  2. package/package.json +3 -3
package/dist/router.mjs CHANGED
@@ -606,10 +606,12 @@ function flattenNamedRouteRecords(records, parentPath, parentName, parentAliasPa
606
606
  const normalizedInheritedAliasPaths = record.path.startsWith("/") ? [] : parentAliasPaths.map((parentAliasPath) => normalizeNestedRoutePath(record.path, parentAliasPath)).filter(Boolean).filter((aliasPath) => aliasPath !== normalizedPath);
607
607
  const normalizedAliasPaths = mergeAliasPaths([...normalizedDirectAliasPaths, ...normalizedInheritedAliasPaths]);
608
608
  const normalizedRecord = {
609
- ...record,
610
609
  name: routeName,
611
610
  path: normalizedPath ? createAbsoluteRoutePath(normalizedPath) : "/",
612
- alias: createRouteRecordAliasValue(normalizedAliasPaths)
611
+ alias: createRouteRecordAliasValue(normalizedAliasPaths),
612
+ meta: record.meta,
613
+ beforeEnter: record.beforeEnter,
614
+ redirect: record.redirect
613
615
  };
614
616
  flattenedRecords.push({
615
617
  route: normalizedRecord,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "6.8.0",
4
+ "version": "6.9.1",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -95,8 +95,8 @@
95
95
  },
96
96
  "dependencies": {
97
97
  "vue": "^3.5.30",
98
- "@wevu/api": "0.2.1",
99
- "@wevu/compiler": "6.8.0"
98
+ "@wevu/api": "0.2.2",
99
+ "@wevu/compiler": "6.9.1"
100
100
  },
101
101
  "scripts": {
102
102
  "dev": "tsdown -w",