@ray-js/framework-shared 0.6.22-beta-2 → 0.6.25

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.
@@ -12,6 +12,10 @@ export function normalizeTabBar(tabBar, routes) {
12
12
 
13
13
  if (Array.isArray(list)) {
14
14
  list = list.map(function (tab) {
15
+ if (tab.id === undefined) {
16
+ return tab;
17
+ }
18
+
15
19
  var _iterator = _createForOfIteratorHelper(routes),
16
20
  _step;
17
21
 
@@ -19,7 +23,7 @@ export function normalizeTabBar(tabBar, routes) {
19
23
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
20
24
  var r = _step.value;
21
25
 
22
- // 兼容老项目
26
+ // 兼容老项目,将老数据格式到新数据
23
27
  if (tab.id === r.id) {
24
28
  return _objectSpread(_objectSpread({}, tab), {}, {
25
29
  pagePath: r.path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/framework-shared",
3
- "version": "0.6.22-beta-2",
3
+ "version": "0.6.25",
4
4
  "description": "Ray shared for framework",
5
5
  "keywords": [
6
6
  "ray"
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@ray-core/wechat": "^0.0.x",
24
- "@ray-js/env": "^0.6.22-beta-2",
25
- "@ray-js/types": "^0.6.22-beta-2",
24
+ "@ray-js/env": "^0.6.25",
25
+ "@ray-js/types": "^0.6.25",
26
26
  "path-to-regexp": "^6.2.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@ray-js/cli": "^0.6.22-beta-2"
29
+ "@ray-js/cli": "^0.6.25"
30
30
  },
31
31
  "maintainers": [
32
32
  {
@@ -34,6 +34,6 @@
34
34
  "email": "tuyafe@tuya.com"
35
35
  }
36
36
  ],
37
- "gitHead": "5d621bf1561047175b967cdf3aa35446f7d7198a",
37
+ "gitHead": "410b4714bc5f496978ddd642ee092f0fe3d8bf8d",
38
38
  "repository": {}
39
39
  }