禁止报错

This commit is contained in:
hackrobot
2025-04-14 10:16:42 -05:00
parent 2a64f28846
commit 8a227785d1
5 changed files with 21 additions and 4 deletions

View File

@@ -5,6 +5,9 @@ import './app.scss'
import 'animate.css';
import 'taro-ui/dist/style/index.scss' // 全局引入一次即可
import 'core-js/stable';
import 'regenerator-runtime/runtime'; // 用于支持 async/await
/**
* 有数埋点SDK 默认配置
* 使用方法请参考文档 https://mp.zhls.qq.com/youshu-docs/develop/sdk/Taro.html
@@ -68,7 +71,7 @@ class App extends Component {
// this.props.children 是将要会渲染的页面
render () {
return this.props.children
return this.props?.children
}
}