@conecli/cone-render 0.8.15-beta.3 → 0.8.15-beta.4
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/dist/common/index.h5.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: lichang68
|
|
3
3
|
* @Date: 2022-10-31 20:27:51
|
|
4
|
-
* @LastEditTime: 2022-11-01
|
|
4
|
+
* @LastEditTime: 2022-11-01 11:05:23
|
|
5
5
|
* @LastEditors: lichang68
|
|
6
6
|
* @Description: 错误边界,是一个React组件,只能是class组件,可以捕获发生在子组件树任何位置的js错误,并打印这些错误,同时展示降级UI,并不会渲染发生崩溃的子组件树。
|
|
7
7
|
* 包裹ContainerFloorList,捕获isv h5楼层渲染时的错误异常,并做屏蔽处理
|
|
@@ -25,6 +25,7 @@ export default class ErrorBoundary extends React.Component {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
componentDidCatch(error, errorInfo) {
|
|
28
|
+
// TODO: 后期这里增加,isv异常上报。当前处理只是简单的console.log('错误信息')
|
|
28
29
|
// 打印错误信息,error错误信息,errorInfo错误堆栈
|
|
29
30
|
console.log('isv模块渲染异常ErrorBoundary==========error: ', error.toString())
|
|
30
31
|
console.log('isv模块渲染异常ErrorBoundary==========errorInfo: ', errorInfo.componentStack)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { Suspense, lazy } from 'react'
|
|
1
|
+
import React, { Suspense, lazy } from 'react'
|
package/dist/interface/common.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|