Authored by ccbikai

增强数据校验

@@ -15,7 +15,7 @@ let channel = { @@ -15,7 +15,7 @@ let channel = {
15 cache: true, 15 cache: true,
16 code: 200 16 code: 200
17 }).then(result => { 17 }).then(result => {
18 - return result.data ? processResources(result.data) : []; 18 + return result && result.data ? processResources(result.data) : [];
19 }); 19 });
20 }, 20 },
21 getSidebarData() { 21 getSidebarData() {