Commit 74745214 authored by 李维's avatar 李维

空值保护

parent f1e39bae
......@@ -119,6 +119,9 @@ export default class NewClass extends cc.Component {
});
});
const { rows } = await asyncCallNetworkApiGet(`/api/kyxq/v1/user/syllabus/status`, { syllabuses: [...oneFlow, ...twoFlow].join(`,`) });
if(!rows) {
return
}
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
if (oneFlow.includes(row.id)) {
......@@ -136,7 +139,6 @@ export default class NewClass extends cc.Component {
const svNode = this.unitScrollView;
svNode.opacity = 0;
const resData = await this.Viewer.getComponent("PageViewer").getSyllabusTreeByPid(this.node['syllabus_pid'])
let rows = []
this.configData = null
let bgImageUrl = null;
......
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