Commit 3f1e0fee authored by 李维's avatar 李维

空值保护

parent 2db0f7f6
......@@ -167,7 +167,7 @@ export default class NewClass extends cc.Component {
// 刷新右上角“课程简介”按钮显示隐藏
refreshConfig() {
if (this.configData.introduces.length > 0) {
if (this.configData && this.configData.introduces.length > 0) {
this.btn_preview.active = true
} else {
this.btn_preview.active = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment