@tmsfe/tms-core 0.0.66 → 0.0.67

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": "@tmsfe/tms-core",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,7 +48,12 @@ function getPageLifeExtra(page: any, methodName: string, args: any[]): IPageLife
48
48
  page.tmsPageShowCount += 1;
49
49
  page.tmsPageShowTime = Date.now();
50
50
  showCount = page.tmsPageShowCount;
51
- lessShowTime = page.tmsPageShowTime - page.tmsPageLoadTime;
51
+ // 如果是最小化之后再打开,或者后退出来触发的onShow,则无法计算lessShowTime
52
+ if (showCount === 1) {
53
+ lessShowTime = page.tmsPageShowTime - page.tmsPageLoadTime;
54
+ } else {
55
+ lessShowTime = 0;
56
+ }
52
57
  } else if (methodName === 'onLoad') {
53
58
  page.tmsTouchCount = 0;
54
59
  page.tmsPageShowCount = 0;