禁止报错
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user