@mpxjs/core 2.6.108 → 2.6.110

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": "@mpxjs/core",
3
- "version": "2.6.108",
3
+ "version": "2.6.110",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -41,5 +41,5 @@
41
41
  "url": "https://github.com/didi/mpx/issues"
42
42
  },
43
43
  "sideEffects": false,
44
- "gitHead": "5efa2dec1597b0b7dd45e46b3ddf23bf46e25177"
44
+ "gitHead": "a772b52decbf4a3bdc3b5b608a18327bce453b6c"
45
45
  }
@@ -3,9 +3,7 @@ export default function pageRouteMixin (mixinType) {
3
3
  if (mixinType === 'page') {
4
4
  return {
5
5
  beforeCreate () {
6
- if (this.$options.__mpxPageRoute) {
7
- this.route = this.$options.__mpxPageRoute.slice(1)
8
- }
6
+ this.route = this.$options.__mpxPageRoute || ''
9
7
  }
10
8
  }
11
9
  }
@@ -20,6 +20,8 @@ export default function proxyEventMixin () {
20
20
  if (type === 'begin' || type === 'end') {
21
21
  // 地图的 regionchange 事件会派发 e.type 为 begin 和 end 的事件
22
22
  fallbackType = 'regionchange'
23
+ } else if (__mpx_mode__ === 'ali') {
24
+ fallbackType = type.replace(/^./, i => i.toLowerCase())
23
25
  }
24
26
  const target = $event.currentTarget || $event.target
25
27
  if (!target) {